Network.is_connected¶
- Network.is_connected(edges=None) bool [source]¶
Check whether edges are connected.
- Parameters
- edgesint or array_like, optional
Indices of network edges to check connectedness for.
- Returns
- bool
Whether edges are connected.
See also
Examples
Separating Sioux-Falls:
>>> import paminco >>> net = paminco.net.load_sioux() >>> net.delete_nodes(["6", "9", "11", "13"], is_label=True) (4, 24, 172) >>> net.is_connected() False