Skip to content

Commit d2dded1

Browse files
committed
Add VertexShapeFunction
1 parent 72372ea commit d2dded1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mathicsscript/format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,12 @@ def format_graph(G):
338338
cached_pair = None
339339

340340
graph_layout = G.graph_layout if hasattr(G, "graph_layout") else None
341+
node_shape = G.node_shape if hasattr(G, "node_shape") else "o"
341342

342343
node_size = DEFAULT_NODE_SIZE
343344
draw_options = {
344345
"node_size": node_size,
346+
"node_shape": node_shape,
345347
# "with_labels": vertex_labels # Set below
346348
# "font_size": 12, # Harmonized
347349
# "node_color": "white", # Set below

0 commit comments

Comments
 (0)