diff --git a/moose-core/python/moose/genesis/_main.py b/moose-core/python/moose/genesis/_main.py index 65963cabf65f4f233c174c1856479e392c66b98f..4e61141f46f17b5c6bcf749ff439fedf1e8c91f6 100644 --- a/moose-core/python/moose/genesis/_main.py +++ b/moose-core/python/moose/genesis/_main.py @@ -276,6 +276,8 @@ def autoCoordinates(meshEntry,srcdesConnection): G.add_edge(element(items[0]).path,inn.path) position = nx.graphviz_layout(G, prog = 'dot') + if int( nx.__version__.split( '.' )[-1] ) >= 11: + position = nx.spring_layout( G ) #agraph = nx.to_agraph(G) #agraph.draw("writetogenesis.png", format = 'png', prog = 'dot') sceneitems = {}