connected_components
Get the connected components of a spatial weights object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
w
|
W
|
The spatial weights object. |
required |
ids
|
ndarray
|
The ids of the nodes in the weights object. |
required |
Returns:
Name | Type | Description |
---|---|---|
sub_graphs |
List[W]
|
The connected components of the graph. |