NetworkX

Previous topic

networkx.WeightedMultiDiGraphMatcher.syntactic_feasibility

Next topic

networkx.GraphMatcher.initialize

networkx.GraphMatcher.__init__

GraphMatcher.__init__(G1, G2)

Initialize GraphMatcher.

Parameters :

G1,G2: NetworkX Graph or MultiGraph instances. :

The two graphs to check for isomorphism.

Examples

To create a GraphMatcher which checks for syntactic feasibility:

>>> G1 = nx.path_graph(4)
>>> G2 = nx.path_graph(4)
>>> GM = nx.GraphMatcher(G1,G2)