Expand description
Graph isomorphism algorithms (ALGO-ISO-*).
First entry: simplify_and_colorize (ALGO-ISO-030) — turn a graph
with self-loops and multi-edges into a vertex/edge colored simple
graph, the form consumed by isomorphism backends such as VF2.
Structs§
- LadSubisomorphism
- Result of a first-solution LAD subgraph-isomorphism search
(
subisomorphic_lad). - Simplify
AndColorize - The colored simple graph produced by
simplify_and_colorize. - Vf2Isomorphism
- Result of an exact VF2 graph-isomorphism test (
isomorphic_vf2). - Vf2Subisomorphism
- Result of a VF2 subgraph-isomorphism test (
subisomorphic_vf2). - WlHash
Result - Result of Weisfeiler-Lehman hashing.
Functions§
- automorphism_
group - Compute a generating set of the automorphism group
Aut(G). - canonical_
permutation - Compute a canonical vertex permutation of
graph. - count_
automorphisms - Count the automorphisms of
graph— the order|Aut(G)|of its automorphism group. - count_
isomorphisms_ vf2 - Count the number of VF2 isomorphic mappings between two graphs.
- count_
subisomorphisms_ vf2 - Count the number of VF2 subgraph-isomorphic embeddings of the pattern
graph2into the targetgraph1. - get_
isomorphisms_ vf2 - Collect every VF2 isomorphic mapping between two graphs.
- get_
subisomorphisms_ lad - Enumerate all subgraph isomorphisms from
patternintotargetwith the LAD algorithm. Each returned vector maps pattern vertexi(by index) to its target vertex. - get_
subisomorphisms_ vf2 - Collect every VF2 subgraph-isomorphic embedding of the pattern
graph2into the targetgraph1. - isomorphic
- Decide whether two graphs are isomorphic, choosing a backend automatically.
- isomorphic_
bliss - Test whether two graphs are isomorphic via canonical labeling (BLISS).
- isomorphic_
vf2 - Test whether two graphs are isomorphic using the VF2 algorithm.
- simplify_
and_ colorize - Build a vertex- and edge-colored simple graph from
graph. - subisomorphic
- Decide whether
graph2is isomorphic to a subgraph ofgraph1. - subisomorphic_
lad - Decide whether
patternis isomorphic to a subgraph oftargetusing the LAD algorithm, returning the first embedding found. - subisomorphic_
vf2 - Test whether the pattern
graph2is a (non-induced) subgraph of the targetgraph1, using the VF2 algorithm. - wl_hash
- Compute the Weisfeiler-Lehman hash of a graph.
- wl_
hash_ iterations - Compute WL hashes at each iteration level (subtree patterns of depth 0..k).
- wl_
isomorphic - Check if two graphs have equal WL hash (necessary but not sufficient for isomorphism).