networkx 2.8.2 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
numerical_multiedge_match(attr, default, rtol=1e-05, atol=1e-08)

The value(s) of the attr(s) must be numerical and sortable. If the sorted list of values from G1 and G2 are the same within some tolerance, then the constructed function returns True.

Parameters

attr : string | list

The numerical edge attribute to compare, or a list of numerical edge attributes to compare.

default : value | list

The default value for the numerical edge attribute, or a list of default values for the numerical edge attributes.

rtol : float

The relative error tolerance.

atol : float

The absolute error tolerance.

Returns

match : function

The customized, numerical :None:None:`edge_match` function.

Returns a comparison function for a numerical edge attribute.

Examples

>>> import networkx.algorithms.isomorphism as iso
... nm = iso.numerical_multiedge_match("weight", 1.0)
... nm = iso.numerical_multiedge_match(["weight", "linewidth"], [0.25, 0.5])
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

networkx.algorithms.isomorphism.isomorph.is_isomorphic networkx.algorithms.isomorphism.matchhelpers.numerical_multiedge_match

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /networkx/algorithms/isomorphism/matchhelpers.py#186
type: <class 'function'>
Commit: