Notation: Draw Supported Notations of Explicit ConverterΒΆ

[1]:
import mechkit
import networkx as nx
import matplotlib.pyplot as plt
[2]:
plot_options = dict(
    node_color="yellow",
    node_size=2000,
    width=2,
    arrows=True,
    font_size=10,
    font_color="black",
)
[3]:
converter = mechkit.notation.ExplicitConverter()
[4]:
for entity_type, graph in converter.graphs_dict.items():

    pos = nx.spring_layout(graph, seed=1)

    fig = plt.figure()
    nx.draw_networkx(graph, **plot_options)
    plt.gca().set_title(entity_type)
    plt.tight_layout()
../../_images/source_notebooks_06_4_0.png
../../_images/source_notebooks_06_4_1.png
../../_images/source_notebooks_06_4_2.png
../../_images/source_notebooks_06_4_3.png