Papers
Topics
Authors
Recent
Search
2000 character limit reached

Maximum Common Bigraph Problem

Updated 14 January 2026
  • The Maximum Common Bigraph Problem is defined as finding the largest bigraph shared by two given bigraphs under mappings that preserve both place and link structures.
  • It generalizes classical maximum common subgraph problems and is essential for applications in bisimulation checking, formal verification, and model reduction in reactive systems.
  • Advanced algorithms, including adaptations of McSplit and RRSplit, tackle its NP-hard complexity using branch-and-bound techniques and structural pruning.

The Maximum Common Bigraph Problem (MCB) concerns the computation of the largest bigraph structure shared by two given bigraphs under admissible mappings that preserve both place and link structure. Bigraphs, as introduced by Milner, simultaneously encode spatial (place-graph) and connection (link-graph) relationships, making the MCB problem a strict generalisation of classical maximum common (sub)graph problems, with direct applications to bisimulation checking, formal verification, and model reduction in bigraph reactive systems. Both general bigraph matching and the MCB problem are NP-hard, requiring advanced combinatorial and branch-and-bound techniques, notably adaptations of the McSplit and RRSplit paradigms, to construct practically feasible algorithms for large models (Burns et al., 7 Jan 2026, Yu et al., 17 Feb 2025).

1. Formal Definition of the Maximum Common Bigraph Problem

Given two solid concrete bigraphs,

G1:m1,X1n1,Y1,G2:m2,X2n2,Y2G_1 : \langle m_1,X_1\rangle \to \langle n_1,Y_1\rangle,\quad G_2 : \langle m_2,X_2\rangle \to \langle n_2,Y_2\rangle

where a concrete bigraph GG consists of

  • a place graph GP=(V,ctrl,prnt):mnG^P = (V, \mathrm{ctrl}, \mathrm{prnt}): m\to n, with VV nodes, controls ctrl:VK\mathrm{ctrl}:V\to K, and acyclic parent map prnt\mathrm{prnt};
  • a link graph GL=(V,E,ctrl,link):XYG^L = (V, E, \mathrm{ctrl}, \mathrm{link}): X \to Y, where EE is the edge set and link:XPEY\mathrm{link}: X \sqcup P \to E \sqcup Y connects ports PP and names.

A maximum common bigraph (MCB) is a pair GG0 with

  1. Existence of contexts GG1 and parameters GG2 such that

GG3

  1. Maximality of GG4: no strictly larger GG5 exists such that GG6 embeds into both GG7 and GG8 by support-size, and GG9 is RPO-saturated (cannot be extended further by pushout).
  2. GP=(V,ctrl,prnt):mnG^P = (V, \mathrm{ctrl}, \mathrm{prnt}): m\to n0 is an injective mapping of GP=(V,ctrl,prnt):mnG^P = (V, \mathrm{ctrl}, \mathrm{prnt}): m\to n1’s entities, ports, and closed links into those of GP=(V,ctrl,prnt):mnG^P = (V, \mathrm{ctrl}, \mathrm{prnt}): m\to n2 and GP=(V,ctrl,prnt):mnG^P = (V, \mathrm{ctrl}, \mathrm{prnt}): m\to n3.

In a concise form,

GP=(V,ctrl,prnt):mnG^P = (V, \mathrm{ctrl}, \mathrm{prnt}): m\to n4

where GP=(V,ctrl,prnt):mnG^P = (V, \mathrm{ctrl}, \mathrm{prnt}): m\to n5 orders bigraphs by support-size and bigraph composition.

In the bipartite setting, for bigraphs modelled as bipartite graphs GP=(V,ctrl,prnt):mnG^P = (V, \mathrm{ctrl}, \mathrm{prnt}): m\to n6 and GP=(V,ctrl,prnt):mnG^P = (V, \mathrm{ctrl}, \mathrm{prnt}): m\to n7, the problem is to find the triple GP=(V,ctrl,prnt):mnG^P = (V, \mathrm{ctrl}, \mathrm{prnt}): m\to n8 of largest size such that GP=(V,ctrl,prnt):mnG^P = (V, \mathrm{ctrl}, \mathrm{prnt}): m\to n9 embeds into VV0 and VV1 into VV2, with an induced bijection VV3 preserving bipartition and adjacency (Yu et al., 17 Feb 2025).

2. Computational Complexity

Bigraph matching is NP-hard, shown to be NP-complete for controls of unbounded arity. Since MCB strictly generalises matching—recovering matching when VV4 must embed fully—MCB inherits NP-hardness. The decision variant (“Does there exist a common bigraph of size at least VV5?”) is NP-complete via reduction from the Maximum Common Induced Subgraph (MCIS) problem. There is no closed-form polynomial time bound except special instances; exponential bounds hold in the general case (Burns et al., 7 Jan 2026).

For bipartite bigraphs, worst-case time complexity for branch-and-bound solutions such as RRSplit is

VV6

where VV7 hides polynomial factors (Yu et al., 17 Feb 2025).

3. Algorithmic Methods

Two chief algorithmic paradigms exist: a McSplit-based approach for arbitrary bigraphs, and RRSplit for bipartite bigraphs.

(A) McSplit Adaptation for Bigraphs (Burns et al., 7 Jan 2026):

  • Encoding: Place-graph (VV8): nodes (entities) become vertices; parent-child links become edges; vertices labelled by control.
  • Flattened link-graph (VV9): Ports and closures become additional vertices; introduced edges encode membership and attachment to closures.
  • Combined encoding: ctrl:VK\mathrm{ctrl}:V\to K0, producing a single labelled ordinary graph.
  • Search tree state: Maintains a partial mapping ctrl:VK\mathrm{ctrl}:V\to K1, label classes grouping unmatched vertices, and upper bounds on extendable mapping size (ignoring port-to-port classes).
  • Branching and pruning: Enforces bigraph-specific composition constraints (tensor-disjointness, closure visibility only after all parent ports matched).
  • Pseudocode principle: Recursive search with score, bound pruning, class refinement, and visibility update.

Computational cost per node is ctrl:VK\mathrm{ctrl}:V\to K2 with depth at most ctrl:VK\mathrm{ctrl}:V\to K3.

(B) RRSplit for Bipartite Bigraphs (Yu et al., 17 Feb 2025):

  • Search node: Triplet ctrl:VK\mathrm{ctrl}:V\to K4 of current partial match, candidate pairs, and exclusion set.
  • Vertex-equivalence reduction: Prunes search branches by leveraging structural equivalence classes within each partition.
  • Maximality-based reduction: Branches only on pairs guaranteed to be present in some maximum solution, thus reducing redundancy.
  • Refined upper bound: For each Cartesian cell ctrl:VK\mathrm{ctrl}:V\to K5 of potential pairs, computes an upper bound via representative-based splitting.
  • Partition-wise degeneracy ordering: Favors enumeration that rapidly reduces candidate set size.
  • Implementation: Precomputes static equivalence classes, employs bitset adjacency for fast neighborhood queries.

Table: Main Algorithmic Paradigms

Paradigm Applicable to Key Features
McSplit General bigraphs Graph encoding, label class refinement, composition constraints, exponential search tree
RRSplit Bipartite bigraphs Structural equivalence pruning, cell-based maximality, refined upper bounds, empirical speedup

4. Illustrative Example

For two bigraphs ctrl:VK\mathrm{ctrl}:V\to K6 and ctrl:VK\mathrm{ctrl}:V\to K7:

  • ctrl:VK\mathrm{ctrl}:V\to K8 is a flat place graph with two A-nodes (ctrl:VK\mathrm{ctrl}:V\to K9, prnt\mathrm{prnt}0), each with one port, and one closed link connecting them.
  • prnt\mathrm{prnt}1 is a longer chain with three A-nodes (prnt\mathrm{prnt}2–prnt\mathrm{prnt}3–prnt\mathrm{prnt}4) and two closures: prnt\mathrm{prnt}5 (closure prnt\mathrm{prnt}6) and prnt\mathrm{prnt}7 (closure prnt\mathrm{prnt}8).
  1. Encode place graphs: prnt\mathrm{prnt}9 has two nodes, GL=(V,E,ctrl,link):XYG^L = (V, E, \mathrm{ctrl}, \mathrm{link}): X \to Y0 has three nodes and two edges.
  2. Flatten link graphs: Vertices added for each port and closure, edges encode connections.
  3. Label classes: Entities (control-A), ports, and closures grouped into respective label classes.
  4. Search tree: Starts with an empty mapping and upper bound from label classes.
  5. Branching: Map GL=(V,E,ctrl,link):XYG^L = (V, E, \mathrm{ctrl}, \mathrm{link}): X \to Y1, refine label classes. Map GL=(V,E,ctrl,link):XYG^L = (V, E, \mathrm{ctrl}, \mathrm{link}): X \to Y2, refine further. Ports and closures mapped as visible; maximal mapping is two A-nodes linked by a single closure (from GL=(V,E,ctrl,link):XYG^L = (V, E, \mathrm{ctrl}, \mathrm{link}): X \to Y3).

No larger entity-only mapping exists, confirming optimality.

5. Role in Bisimulation Checking and Minimal Context Formation

MCB is pivotal in constructing the Minimal Contextual Transition System (MCTS) for bigraph agents. For an agent bigraph GL=(V,E,ctrl,link):XYG^L = (V, E, \mathrm{ctrl}, \mathrm{link}): X \to Y4 and a rewrite rule GL=(V,E,ctrl,link):XYG^L = (V, E, \mathrm{ctrl}, \mathrm{link}): X \to Y5, discovering their maximum common bigraph GL=(V,E,ctrl,link):XYG^L = (V, E, \mathrm{ctrl}, \mathrm{link}): X \to Y6 (the largest overlap) is required to:

  • Remove GL=(V,E,ctrl,link):XYG^L = (V, E, \mathrm{ctrl}, \mathrm{link}): X \to Y7 from both GL=(V,E,ctrl,link):XYG^L = (V, E, \mathrm{ctrl}, \mathrm{link}): X \to Y8 and GL=(V,E,ctrl,link):XYG^L = (V, E, \mathrm{ctrl}, \mathrm{link}): X \to Y9.
  • Define the minimal residual context EE0 necessary for the rule application.
  • Systematically enumerate all minimal transitions EE1 by iterating over all EE2 pairs and their MCBs.

Bisimulation—equivalence up to contextual behavior—relies on comparing isomorphism types of agents' MCTSs, which MCB supports directly. This is stricter than LTS-based equivalence, as LTS ignores unknown context and is therefore incomplete for full bisimulation analysis (Burns et al., 7 Jan 2026).

6. Extensions, Heuristics, and Practical Performance

Proposed optimisations for MCB search include:

  • Bit-parallel McSplit implementations for inclusion in bigraph toolkits (e.g., BigraphER).
  • Parallelisation of independent MCB computations for different rule/context pairs.
  • Heuristic improvements such as PageRank seeding and look-ahead to further prune the search tree.
  • Tightening interface compatibility constraints earlier in search to improve pruning efficacy.

Empirical benchmarks for RRSplit show substantial performance improvements over McSplitDAL, with 7,730 out of 9,180 bipartite graph instances solved within 1,800 seconds compared to 4,696 for McSplitDAL, and average speedups exceeding EE3 on biochemical-reaction datasets (Yu et al., 17 Feb 2025). Branch exploration is reduced to 0.1–10% of previous approaches, making very large bipartite instances tractable.

MCB generalises the classical Maximum Common Induced Subgraph (MCIS) problem, as matching is a degenerate MCB where one bigraph is embedded fully into the other. This positions MCB at the intersection of graph isomorphism, model checking, and rule-based system optimization. In the bipartite case, structural results and algorithmic advances from chemical informatics, reaction network analysis, and database theory directly influence both the theoretical and practical development of MCB solvers (Yu et al., 17 Feb 2025).

Advances in practical branch-and-bound search, such as the reduction-complete RRSplit algorithm, rely on accelerating search-space pruning by leveraging structural symmetries and equivalence classes, relevant to general combinatorial optimization beyond the bigraph framework.

For formal verification, process calculi, and agent-based modelling, robust MCB computation is increasingly integral for model minimization and quantifying behavioral similarity in structurally rich, context-dependent models (Burns et al., 7 Jan 2026).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Maximum Common Bigraph Problem.