Expand description
KSG (King’s SubGraph) mapping functions for graphs to grid graphs.
This module provides functions to map arbitrary graphs to King’s SubGraph (8-connected grid graphs). It supports both unweighted and weighted mapping modes.
Structs§
- Mapping
Result - Result of mapping a graph to a grid graph.
Enums§
- Grid
Kind - The kind of grid lattice used in a mapping result.
Functions§
- embed_
graph - Embed a graph into a mapping grid.
- map_
config_ copyback - Extract original vertex configurations from copyline locations.
- map_
unweighted - Map a graph to a KSG grid graph using automatic path decomposition.
- map_
unweighted_ with_ method - Map a graph using a specific path decomposition method (unweighted).
- map_
unweighted_ with_ order - Map a graph with a specific vertex ordering (unweighted).
- map_
weighted - Map a graph to a KSG grid graph using optimal path decomposition (weighted mode).
- map_
weighted_ with_ method - Map a graph using a specific path decomposition method (weighted).
- map_
weighted_ with_ order - Map a graph with a specific vertex ordering (weighted).
- trace_
centers - Trace center locations through KSG square lattice gadget transformations.
- unapply_
gadgets - Unapply gadgets from tape in reverse order, converting mapped configs to source configs.
- unapply_
weighted_ gadgets - Unapply weighted gadgets from tape in reverse order.