Matchings, node roles and edge classes#

Maximum matching of a directed network and its matching-invariant structure.

A matching \(\mathcal{M}\) of a directed network is a set of edges no two of which share a start node or an end node. In the bipartite representation every node \(x_i\) is split into an out-copy \(x_i^+\) and an in-copy \(x_i^-\), and an edge \(x_j\to x_i\) joins \(x_j^+\) and \(x_i^-\); a directed matching is an ordinary matching of this bipartite graph. A node is matched when an edge of the matching ends in it. Liu, Slotine and Barabási showed that the unmatched nodes of a maximum matching are a minimum set of driver nodes (their minimum input theorem).

Maximum matchings are not unique. Two results describe what all of them share:

  • node roles (Jia et al. 2013): a node is a driver node in every minimum driver set (critical), in some (intermittent) or in none (redundant);

  • edge classes (Liu et al. 2011): an edge belongs to every maximum matching (critical), to some (ordinary) or to none (redundant).

Both are computed here from one maximum matching with alternating-path arguments (Dulmage–Mendelsohn decomposition) instead of enumerating the matchings.

Maximum matching of a directed network and what all maximum matchings share.

Classes#

Matching(matched_by)

A matching of a directed network.

Functions#

maximum_matching(adj)

Maximum matching of a directed network (Hopcroft--Karp).

matching_size(adj)

Size of a maximum matching, i.e. the generic rank of \(\mathbf{A}\).

node_roles(adj[, matching])

Role of every node across all maximum matchings (Jia et al. 2013).

edge_classes(adj[, matching])

Class of every edge across all maximum matchings (Liu et al. 2011).

all_maximum_matchings(adj[, limit])

Enumerate the maximum matchings of a small network (for teaching and tests).

Constants#

NODE_ROLES

Built-in immutable sequence.

EDGE_CLASSES

Built-in immutable sequence.