Skip to content

edge_length_filter

EdgeLengthFilter

Bases: GraphFilter

Filter out connections that are shorter than the minimum edge length and longer than the maximum edge length. If either the upper or lower bound is missing, then this will be -inf or inf respectively.

filter(graph) staticmethod

Apply an upper and lower bound edge length filter. If either the upper or lower bound is None, then it will skip said bound.

Parameters:

Name Type Description Default
graph Graph

Dgm graph object.

required

Returns:

Name Type Description
Graph Graph

Dgm graph object.