Skip to content

connected_component_filter

ConnectedComponentFilter

Bases: GraphFilter

The ConnectedComponentFilter filters out all connections that are not part of the largest weakly connected component. If this filter is used, only one strongly connected component remains.

filter(graph) staticmethod

Filter connections that are not part of the largest weakly connected component.

Parameters:

Name Type Description Default
graph Graph

Dgm graph object.

required

Returns:

Name Type Description
Graph Graph

Dgm graph object.