V - the vertex type.E - the edge type.public class TiernanSimpleCycles<V,E> extends Object implements DirectedSimpleCycles<V,E>
See:
J.C.Tiernan An Efficient Search Algorithm Find the Elementary Circuits of a Graph.,
Communications of the ACM, vol.13, 12, (1970), pp. 722 - 726.
| Constructor and Description |
|---|
TiernanSimpleCycles()
Create a simple cycle finder with an unspecified graph.
|
TiernanSimpleCycles(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 TiernanSimpleCycles()
public TiernanSimpleCycles(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 © 2018. All rights reserved.