BendNetwork.is_connected

BendNetwork.is_connected()

Verify that the graph is connected.

Returns:
bool

True, if the graph is connected. False, otherwise.

Notes

A graph is connected if for every two vertices a path exists connecting them.

Examples

>>> import compas
>>> from compas.datastructures import Graph
>>> graph = Graph.from_obj(compas.get("lines.obj"))
>>> graph.is_connected()
True