exa.core.util.topology.get_matching_from_morphisms#
- get_matching_from_morphisms(morphisms, layout_graph)#
Convert morphisms into matching.
Relies on the order of the nodes in the graph being fixed.
For each mapping, create a tuple of physical components in the order of nodes in the layout graph they correspond to.