FindEdgeIndependentPaths[g,s,t,k]
finds at most k edge-independent paths from vertex s to vertex t in the graph g.
FindEdgeIndependentPaths[{vw,…},…]
uses rules vw to specify the graph g.
FindEdgeIndependentPaths
FindEdgeIndependentPaths[g,s,t,k]
finds at most k edge-independent paths from vertex s to vertex t in the graph g.
FindEdgeIndependentPaths[{vw,…},…]
uses rules vw to specify the graph g.
Details
- Edge-independent paths are also known as edge-disjoint paths.
- FindEdgeIndependentPaths returns a list of edge-independent paths from s to t.
- Each path is given as a list of vertices.
- FindEdgeIndependentPaths works with undirected graphs, directed graphs, multigraphs, and mixed graphs.
Examples
open all close allBasic Examples (1)
Scope (6)
FindEdgeIndependentPaths works with undirected graphs:
FindEdgeIndependentPaths[[image], 1, 6, 2]FindEdgeIndependentPaths[[image], 1, 6, 2]FindEdgeIndependentPaths[[image], 1, 6, 2]FindEdgeIndependentPaths[[image], 1, 6, 2]Use rules to specify the graph:
FindEdgeIndependentPaths[{1 -> 2, 1 -> 5, 2 -> 3, 3 -> 4, 4 -> 5, 6 -> 3, 4 -> 6}, 1, 6, 2]FindEdgeIndependentPaths works with large graphs:
g = GridGraph[{10, 10, 10, 10}];FindEdgeIndependentPaths[g, 3, 10, 3]//TimingProperties & Relations (2)
FindEdgeIndependentPaths only returns simple paths:
FindEdgeIndependentPaths[[image], 1, 3, 3]EdgeConnectivity gives the maximum number of edge-independent paths:
g = ExampleData[{"NetworkGraph", "ZacharyKarateClub"}];FindEdgeIndependentPaths[g, 1, 32, Infinity]//LengthEdgeConnectivity[g, 1, 32]Possible Issues (1)
Find a largest set of edge-independent paths between two vertices:
g = GridGraph[{2, 3}];FindEdgeIndependentPaths[g, 2, 5, Infinity]HighlightGraph[g, PathGraph[#]]& /@ %Another edge-independent path:
HighlightGraph[g, PathGraph[{2, 4, 3, 5}]]Related Guides
Text
Wolfram Research (2014), FindEdgeIndependentPaths, Wolfram Language function, https://reference.wolfram.com/language/ref/FindEdgeIndependentPaths.html (updated 2015).
CMS
Wolfram Language. 2014. "FindEdgeIndependentPaths." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/FindEdgeIndependentPaths.html.
APA
Wolfram Language. (2014). FindEdgeIndependentPaths. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindEdgeIndependentPaths.html
BibTeX
@misc{reference.wolfram_2026_findedgeindependentpaths, author="Wolfram Research", title="{FindEdgeIndependentPaths}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/FindEdgeIndependentPaths.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_findedgeindependentpaths, organization={Wolfram Research}, title={FindEdgeIndependentPaths}, year={2015}, url={https://reference.wolfram.com/language/ref/FindEdgeIndependentPaths.html}, note=[Accessed: 12-June-2026]}