V
- the vertex type.E
- the edge type.public class SzwarcfiterLauerSimpleCycles<V,E> extends Object implements DirectedSimpleCycles<V,E>
See:
J.L.Szwarcfiter and P.E.Lauer, Finding the elementary cycles of a directed graph in $O(n + m)$
per cycle, Technical Report Series, #60, May 1974, Univ. of Newcastle upon Tyne, Newcastle upon
Tyne, England.
Constructor and Description |
---|
SzwarcfiterLauerSimpleCycles()
Create a simple cycle finder with an unspecified graph.
|
SzwarcfiterLauerSimpleCycles(Graph<V,E> graph)
Create a simple cycle finder for the specified graph.
|
Modifier and Type | Method and Description |
---|---|
List<List<V>> |
findSimpleCycles()
Find the simple cycles of the graph.
|
Graph<V,E> |
getGraph()
Get the graph
|
void |
setGraph(Graph<V,E> graph)
Set the graph
|
public SzwarcfiterLauerSimpleCycles()
public SzwarcfiterLauerSimpleCycles(Graph<V,E> graph)
graph
- - the DirectedGraph in which to find cycles.IllegalArgumentException
- if the graph argument is
null
.public List<List<V>> findSimpleCycles()
findSimpleCycles
in interface DirectedSimpleCycles<V,E>
null
.Copyright © 2019. All rights reserved.