def visualize_diagram(bpmn_diagram):
g = bpmn_diagram.diagram_graph<EOL>pos = bpmn_diagram.get_nodes_positions()<EOL>nx.draw_networkx_nodes(g, pos, node_shape='<STR_LIT:s>', node_color='<STR_LIT>',<EOL>nodelist=bpmn_diagram.get_nodes_id_list_by_type(consts.Consts.task))<EOL>nx.draw_networkx_nodes(g, pos, node_shape='<STR_LIT:s>', node_color='<STR_LIT>',<EOL>nodelist=bpmn_diagram.get_nodes_id_list_by_type(consts.Consts.subprocess))<EOL>nx.draw_networkx_nodes(g, pos, node_shape='<STR_LIT:d>', node_color='<STR_LIT>',<EOL>nodelist=bpmn_diagram.get_nodes_id_list_by_type(consts.Consts.complex_gateway))<EOL>nx.draw_networkx_nodes(g, pos, node_shape='<STR_LIT:o>', node_color='<STR_LIT>',<EOL>nodelist=bpmn_diagram.get_nodes_id_list_by_type(consts.Consts.event_based_gateway))<EOL>nx.draw_networkx_nodes(g, pos, node_shape='<STR_LIT:d>', node_color='<STR_LIT>',<EOL>nodelist=bpmn_diagram.get_nodes_id_list_by_type(consts.Consts.inclusive_gateway))<EOL>nx.draw_networkx_nodes(g, pos, node_shape='<STR_LIT:d>', node_color='<STR_LIT>',<EOL>nodelist=bpmn_diagram.get_nodes_id_list_by_type(consts.Consts.exclusive_gateway))<EOL>nx.draw_networkx_nodes(g, pos, node_shape='<STR_LIT:d>', node_color='<STR_LIT>',<EOL>nodelist=bpmn_diagram.get_nodes_id_list_by_type(consts.Consts.parallel_gateway))<EOL>nx.draw_networkx_nodes(g, pos, node_shape='<STR_LIT:o>', node_color='<STR_LIT>',<EOL>nodelist=bpmn_diagram.get_nodes_id_list_by_type(consts.Consts.start_event))<EOL>nx.draw_networkx_nodes(g, pos, node_shape='<STR_LIT:o>', node_color='<STR_LIT>',<EOL>nodelist=bpmn_diagram.get_nodes_id_list_by_type(consts.Consts.intermediate_catch_event))<EOL>nx.draw_networkx_nodes(g, pos, node_shape='<STR_LIT:o>', node_color='<STR_LIT>',<EOL>nodelist=bpmn_diagram.get_nodes_id_list_by_type(consts.Consts.end_event))<EOL>nx.draw_networkx_nodes(g, pos, node_shape='<STR_LIT:o>', node_color='<STR_LIT>',<EOL>nodelist=bpmn_diagram.get_nodes_id_list_by_type(consts.Consts.intermediate_throw_event))<EOL>node_labels = {}<EOL>for node in g.nodes(data=True):<EOL><INDENT>node_labels[node[<NUM_LIT:0>]] = node[<NUM_LIT:1>].get(consts.Consts.node_name)<EOL><DEDENT>nx.draw_networkx_labels(g, pos, node_labels)<EOL>nx.draw_networkx_edges(g, pos)<EOL>edge_labels = {}<EOL>for edge in g.edges(data=True):<EOL><INDENT>edge_labels[(edge[<NUM_LIT:0>], edge[<NUM_LIT:1>])] = edge[<NUM_LIT:2>].get(consts.Consts.name)<EOL><DEDENT>nx.draw_networkx_edge_labels(g, pos, edge_labels)<EOL>plt.show()<EOL>
Shows a simple visualization of diagram

:param bpmn_diagram: an instance of BPMNDiagramGraph class.