Metro-Line Crossing Minimization (MLCM-P)
- MLCM-P is a combinatorial optimization problem that minimizes crossings in metro maps by arranging lines with strict periphery terminal constraints.
- It models the ordering of lines on a planar embedded graph, making the assignment NP-hard and central to schematic network visualization research.
- Various algorithms—from exact and exponential-time methods to fixed-parameter techniques and approximations—demonstrate its practical and theoretical significance.
The Metro-Line Crossing Minimization Problem with Periphery constraint (MLCM-P) is a combinatorial optimization problem central to schematic network visualization, particularly the minimization of crossings among multiple simple paths ("lines") drawn atop a fixed embedded undirected graph representing stations and rail segments. Its distinguishing constraint—the periphery or terminal-at-verge condition—mandates that all line terminals must be attached at the outermost positions within each station rendering, reflecting longstanding practical conventions in metro map design. The problem has attracted significant attention due to its theoretical complexity, rigorous combinatorial structure, and utility as a benchmark for approximation, fixed-parameter, and exact algorithms in topological graph drawing.
1. Formal Definition and Periphery Constraint
Formally, let denote a planar embedded undirected graph, with vertices modeling stations and edges modeling rail-track segments. The input comprises a set of simple paths ("lines"), where each traverses a subset of ’s vertices in order, with ends and . Each edge is assigned a left-to-right ordering of the passing lines at each endpoint, subject to the following periphery constraint: if a line ends at , its terminal must occupy one of the two outermost positions (topmost or bottommost) at the associated port in the station's representation. This prohibits such lines from being "sandwiched" between through-lines.
A layout that assigns such orderings gives rise to the notion of a crossing: two lines cross on edge if their relative order differs at versus . The crossing number is the total number of such line-pair crossings across all edges. The multiplicity is defined as —the maximum number of lines sharing any edge.
The MLCM-P objective is: Given , find line orderings on all ports, respecting the periphery at terminals, that minimize . Precise mathematical objective: where is the ordering of at port (Fink et al., 2013, Okamoto et al., 2013).
2. Computational Hardness and Complexity Results
It is established that MLCM-P is NP-hard even when the underlying graph is a simple path. Specifically, Bekos et al. (2008) and Argyriou et al. (2009) proved that determining a minimum-crossing assignment of lines to path ports under the periphery constraint is NP-hard. The essential reduction encodes an NP-hard ordering problem as an instance where deviation from the intended ordering—forced by terminal placements—incurs a large crossing penalty, ensuring any optimal solution decodes a solution to the source instance. Furthermore, the unconstrained version (MLCM, without periphery) is shown NP-hard even on caterpillars via a "red cross" gadget construction (Fink et al., 2013).
The closely related decision problem, MLCM-P_CROSSING (is ?), however, admits a linear-time algorithm. This is achieved by reducing first to a "circle-inside-crossing" embedding problem and then further to recognizing planarity in an augmented graph . A crossing-free MLCM-P solution corresponds exactly to a planar embedding, which can be tested using Hopcroft–Tarjan planarity in time (Okamoto et al., 2013).
3. Exact, Exponential-Time, and Fixed-Parameter Algorithms
The naive approach of enumerating all possible top/bottom assignments to each terminal yields running time for exact minimization. This can be improved to by branching only on the left-end assignments for each line, and making greedy optimum choices for the right ends. Pairs of lines are classified (patterns A, , , I, D) to determine which combinations can force crossings, and the case-analysis ensures global optimality for each partial assignment. Greedy sweeps over greedy right-end choices cost per assignment (Okamoto et al., 2013).
Crucially, for parameter (maximum local line multiplicity), there exists an dynamic programming (DP) algorithm for paths. At each station, DP-tables and record the minimum crossing count for specified line permutations at the respective port sides. Efficient transition relies on (i) the periphery constraint, (ii) the property that "type C" line-pairs never cross in optimal solutions, and (iii) the fact that any first crossing between a pair occurs just before the maximal endpoint. Each step computes transitions using pairwise inversion counts in per station, leading to the total complexity result (Okamoto et al., 2013): Thus, MLCM-P is fixed-parameter tractable (FPT) with respect to the local edge multiplicity on paths.
4. Approximation Algorithms and Reductions
An -approximation algorithm for MLCM-P leverages a reduction to the Min-2CNF-Deletion problem. For each line-terminal tracks the top/bottom placement at port . Inter-line constraints for shared subpaths are captured as pairs of clauses in a 2CNF formula: each clause corresponds to a crossing constraint (e.g., "same side" or "opposite sides"), and each crossing in a final layout corresponds to a violated clause. The problem then reduces to deleting the smallest set of clauses to make the 2CNF instance satisfiable, for which an -approximation is available (Agarwal et al., 2005), with being the number of clauses. The resulting layout incurs at most times the optimal number of crossings and can be constructed in polynomial time (Fink et al., 2013).
The process involves:
- Constructing the 2SAT instance in time.
- Applying the approximation for clause deletion.
- Solving the reduced 2SAT and recovering valid top/bottom assignments.
- Ordering lines on edges by grouping all top-placed lines above bottoms.
5. Polynomial-Time Solvable Special Cases
Although MLCM-P is NP-hard in general, several restricted cases are solvable in polynomial or fixed-parameter time:
- Zero-crossing existence: Deciding whether a crossing-free solution exists for MLCM-P can be checked via the 2SAT reduction described above, discarding "unavoidable crossing" clauses, and solved in time (Fink et al., 2013).
- Line direction-consistent graphs ("Proper variant"): If all lines flow in the same direction across each edge (e.g., left-to-right paths or upward trees), a purely combinatorial -time algorithm is possible via a reduction to Min-Uncut in an "almost bipartite" auxiliary graph (Fink et al., 2013).
- FPT by maximum parallel lines per edge (): Dynamic programming over all port orderings gives an exact algorithm, applicable, for example, to paths and caterpillars (Fink et al., 2013).
- FPT in number of crossings allowed (): Using the FPT algorithm for Min-2CNF-Deletion parameterized by , with running time where is the number of 2CNF clauses (Fink et al., 2013).
| Problem Variant | Complexity/Algorithm | Reference |
|---|---|---|
| General MLCM-P | NP-hard, even for paths | (Fink et al., 2013) |
| MLCM-P, zero-crossing test | (2SAT) | (Fink et al., 2013) |
| MLCM-P, FPT in (multiplicity) | DP | (Okamoto et al., 2013) |
| MLCM-P, FPT in number of crossings | , parameter | (Fink et al., 2013) |
| Proper-variant, direction-consistent | via Min-Uncut | (Fink et al., 2013) |
| Approximation () | Min-2CNF-Deletion reduction | (Fink et al., 2013) |
6. Open Problems and Future Directions
Several research directions for MLCM-P and related variants remain open:
- Determining whether the unconstrained MLCM problem admits any nontrivial approximation algorithm remains unresolved.
- Improving the approximation factor for MLCM-P to a constant factor is an explicit open problem.
- Clarifying the complexity of MLCM-P and its "Proper" variant on general graphs, especially beyond path-like or direction-consistent cases.
- Extending practical variants to address not only crossing minimization but also other layout quality criteria, such as minimizing the number of polyline bends or optimally distributing crossings for readability.
- Development of FPT algorithms for MLCM-P on general networks parameterized by maximum local multiplicity or other structural parameters is a recognized avenue for further work (Fink et al., 2013, Okamoto et al., 2013).
These challenges underscore the central role of MLCM-P in both theoretical graph drawing and practical schematic network design.