Open
Description
Is your feature related to a problem?
When plotting geodesics, calling connecting_geodesic
, the function assumes that the graph is connected. When not connected, networks.shortest_path
throws after some time an error that can be seen as cryptic by the users.
Describe the solution you would like:
Either when discretising the manifold, or before plotting the geodesics, a warning message can be added to check that the graph is connected: assert nx.is_connected(graph), "Graph not connected"
. Additional guidance or best practices can be added to ensure the graph is connected.
Metadata
Metadata
Assignees
Labels
No labels