2323
2424from inspect import isgenerator
2525
26- WL_MARKER_TO_MATPLOTLIB = {
26+ WL_MARKER_TO_NETWORKX = {
2727 "Circle" : "o" ,
2828 "Diamond" : "D" ,
2929 "Square" : "s" ,
3535 # And many others. Is there a list somewhere?
3636}
3737
38- WL_COLOR_TO_MATPLOTLIB = {
38+ WL_COLOR_TO_NETWORKX = {
3939 "Green" : "g" ,
4040 "Blue" : "b" ,
4141 # And many others. Is there a list somewhere?
4242}
4343
44- WL_LAYOUT_TO_MATPLOTLIB = {
44+ WL_LAYOUT_TO_NETWORKX = {
4545 "CircularEmbedding" : "circular" ,
4646 "SpiralEmbedding" : "spiral" ,
4747 "SpectralEmbedding" : "spectral" ,
@@ -86,7 +86,7 @@ def _process_graph_options(g, options: dict) -> None:
8686 else "Circle"
8787 )
8888
89- g .G .node_shape = g .node_shape = WL_MARKER_TO_MATPLOTLIB .get (shape , shape )
89+ g .G .node_shape = g .node_shape = WL_MARKER_TO_NETWORKX .get (shape , shape )
9090
9191 color = (
9292 options ["System`VertexStyle" ].get_string_value ()
@@ -100,9 +100,9 @@ def _process_graph_options(g, options: dict) -> None:
100100 else ""
101101 )
102102
103- g .G .graph_layout = g .graph_layout = WL_LAYOUT_TO_MATPLOTLIB .get (g .graph_layout , g .graph_layout )
103+ g .G .graph_layout = g .graph_layout = WL_LAYOUT_TO_NETWORKX .get (g .graph_layout , g .graph_layout )
104104
105- g .G .node_color = g .node_color = WL_COLOR_TO_MATPLOTLIB .get (color , color )
105+ g .G .node_color = g .node_color = WL_COLOR_TO_NETWORKX .get (color , color )
106106
107107 g .G .title = g .title = (
108108 options ["System`PlotLabel" ].get_string_value ()
0 commit comments