Matching

A Matching (i.e., a set of edges that do not share any nodes)

Methods

MethodDescription
dstGet the matched destination node for a source node
edge_for_dstGet the matched edge for a destination node
edge_for_srcGet the matched edge for a source node
edgesGet a view of the matched edges
srcGet the matched source node for a destination node

Method Details

dst

Signature: dst(src)

Get the matched destination node for a source node

Parameters

NameTypeDefaultDescription
srcNodeInput-The source node

Returns

TypeDescription
Node, optionalThe matched destination node if it exists

edge_for_dst

Signature: edge_for_dst(dst)

Get the matched edge for a destination node

Parameters

NameTypeDefaultDescription
dstNodeInput-The source node

Returns

TypeDescription
Edge, optionalThe matched edge if it exists

edge_for_src

Signature: edge_for_src(src)

Get the matched edge for a source node

Parameters

NameTypeDefaultDescription
srcNodeInput-The source node

Returns

TypeDescription
Edge, optionalThe matched edge if it exists

edges

Get a view of the matched edges

Returns

TypeDescription
EdgesThe edges in the matching

src

Signature: src(dst)

Get the matched source node for a destination node

Parameters

NameTypeDefaultDescription
dstNodeInput-The destination node

Returns

TypeDescription
Node, optionalThe matched source node if it exists