File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2323from inspect import isgenerator
2424
2525DEFAULT_GRAPH_OPTIONS = {
26- "VertexSize" : "{}" ,
27- "VertexStyle" : "{}" ,
26+ "DirectedEdges" : "False" ,
2827 "EdgeStyle" : "{}" ,
2928 "EdgeWeight" : "{}" ,
3029 "GraphLayout" : "{}" ,
31- "VertexLabels" : "False" ,
3230 "PlotLabel" : "Null" ,
31+ "VertexLabels" : "False" ,
32+ "VertexSize" : "{}" ,
33+ "VertexStyle" : "{}" ,
3334}
3435
3536import networkx as nx
@@ -656,8 +657,8 @@ def full_new_edge_properties(new_edge_style):
656657 n_undirected = len (undirected_edges ),
657658 )
658659
659- G .vertex_labels = options ["System`VertexLabels" ]
660660 g = Graph (G )
661+ g .vertex_labels = G .vertex_labels = options ["System`VertexLabels" ]
661662 G .title = g .title = options ["System`PlotLabel" ]
662663 return g
663664
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ def graph_helper(
3434 G .graph_layout = options ["System`GraphLayout" ].get_string_value () or String (
3535 graph_layout
3636 )
37- G .vertex_labels = options ["System`VertexLabels" ]
3837 g = Graph (G )
38+ G .vertex_labels = g .vertex_labels = options ["System`VertexLabels" ]
3939
4040 if root is not None :
4141 G .root = g .root = root
Original file line number Diff line number Diff line change 44
55DEFAULT_TREE_OPTIONS = {
66 ** DEFAULT_GRAPH_OPTIONS ,
7- ** {"DirectedEdges" : "False" , " GraphLayout" : '"tree"' },
7+ ** {"GraphLayout" : '"tree"' },
88}
99
1010from mathics .builtin .base import Builtin , AtomBuiltin
You can’t perform that action at this time.
0 commit comments