spaghetti.Network.extract_components

Network.extract_components(self, w, graph=False)[source]

Extract connected component information from a libpysal.weights.weights.W object

Parameters
wlibpysal.weights.weights.W

Weights object created from the network segments (either raw or graph-theoretic)

graphbool

Flag for raw network [False] or graph-theoretic network True. Default is False.