Advanced maths

Graph immersion calculator with edge disjoint routing certificate

Test weak graph immersion and return both the branch-vertex map and the edge-disjoint host routes.

Your numbers

One zero-based undirected edge per line; no loops or duplicate unordered pairs.
One zero-based undirected edge per line; no loops or duplicate unordered pairs.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Test weak graph immersion and return both the branch-vertex map and the edge-disjoint host routes. This is a routing certificate with a stated convention, rather than a vertex contraction model.

THE FORMULAInject f:V(H)→V(G); route each edge uv of H by an f(u)–f(v) path, with all chosen host-edge sets pairwise disjoint.

A worked example

A triangle weakly immerses in a four-cycle. Map target vertices0,1,2 to host vertices0,1,2. Route its edges by0–1,1–2 and0–3–2. Every host edge is used once, so the three routes satisfy the edge-disjoint requirement.

Good to know

Host1–7 vertices and≤14 edges; target1–4 vertices and≤6 edges; simple undirected graphs. Weak immersion allows an internal route to pass through another branch vertex. Search capped at1000000 states; a cap error is not a negative result.

An immersion is an edge routing problem

Each target vertex is assigned to a distinct host vertex. Each target edge then needs a host path joining its assigned endpoints. The essential shared-resource rule is that no host edge may belong to two chosen routes.

This differs from a graph minor, where connected branch sets represent target vertices and contractions are permitted. An immersion witness must expose the actual routes, because adjacency between contracted sets is not enough to certify edge-disjoint routing.

Route a triangle around a four-cycle0123Target:triangleRoutes:0–1;1–2and0–3–2No shared host edges
Scroll across to see the full diagram.
A triangle weakly immerses in a four-cycle. Map target vertices0,1,2 to host vertices0,1,2. Route its edges by0–1,1–2 and0–3–2. Every host edge is used once, so the three routes satisfy the edge-disjoint requirement.

Compare this with the Graph minor calculator with deletion and contraction certificate. Minor models use connected branch sets and contractions;an immersion requires distinct branch vertices and edge-disjoint routes.

Choose weak immersion deliberately

This page uses the weak convention: internal route vertices may coincide with other branch vertices, and different routes may meet at host vertices. Only sharing host edges is forbidden. That distinction affects which targets can be routed.

A strong immersion places additional restrictions on internal branch-vertex usage. Do not interpret a weak witness as satisfying that stronger convention without inspecting every route. The convention is reported with the answer so it can be checked independently.

Search assignments and compatible paths

The algorithm enumerates injective target-to-host assignments. For each assignment, it lists simple candidate paths for a target edge and recursively chooses routes whose edge masks do not overlap those already reserved.

Simple paths suffice for existence because a route containing a cycle can have that cycle removed. Shorter candidates are tried first for efficiency, but a completed negative result requires exhausting every supported assignment and compatible path choice.

Route a triangle around a four-cycle

The displayed four-cycle has no triangle as an ordinary subgraph. Its vertices0,1,2 nevertheless act as branch vertices for the triangle, because the missing direct connection0–2 can travel around the other side through vertex3.

Together with edges0–1 and1–2, the path0–3–2 uses all four cycle edges without repetition between routes. Reading these three paths verifies a positive immersion claim directly and explains why ordinary subgraph testing would give a different answer.

Check endpoints and edge ownership

For each target edge, verify that the corresponding host path begins and ends at its mapped branch vertices. Then collect its consecutive host-edge pairs and compare that collection against every other route.

The branch map must be injective even when routes share internal vertices. A path may use a host edge in either direction because the host is undirected. Opposite traversals of the same undirected edge still count as shared use and are forbidden.

Respect exhaustive-search limits

Small dense hosts can have many simple paths even when the target has only a few edges. The state cap limits both path enumeration and route combination search. Reaching it produces an explicit unresolved-search error.

A graph with fewer host vertices than target vertices is immediately infeasible. Other negative answers are issued only after complete supported search. The calculator does not silently convert a timeout into a proof that no immersion exists.

Treat the certificate as a mathematical model

Edge-disjoint routing can describe a network where each link must be dedicated to one demand while junctions may be shared. That interpretation requires the weak convention and unit edge availability to match the application.

Capacities greater than one, directed links, latency constraints and vertex-disjoint routing are different models. The returned routes establish the entered unweighted graph statement; they do not guarantee engineering redundancy under correlated physical failures.

A few questions, answered

Can routes share host vertices?

Yes. This is weak immersion; host edges cannot be shared, but vertices may be.

Can two target vertices map to one host vertex?

No. Branch-vertex assignments must be injective.

Does a cap error mean no immersion exists?

No. It means the bounded search did not finish.

Why is a triangle possible in a square?

One target edge can use a two-edge host path while the other target edges use different host edges.

Find your calculator

Start typing to explore the library.