V
- the vertex type.E
- the edge type.public interface DirectedSimpleCycles<V,E>
Modifier and Type | Method and Description |
---|---|
List<List<V>> |
findSimpleCycles()
Finds the simple cycles of the graph.
Note that the full algorithm is executed on every call since the graph may have changed between calls. |
Graph<V,E> |
getGraph()
Returns the graph on which the simple cycle search algorithm is executed by this object.
|
void |
setGraph(Graph<V,E> graph)
Sets the graph on which the simple cycle search algorithm is executed by this object.
|
Graph<V,E> getGraph()
void setGraph(Graph<V,E> graph)
graph
- the graph.IllegalArgumentException
- if the argument is null
.List<List<V>> findSimpleCycles()
null
.IllegalArgumentException
- if the current graph is null.Copyright © 2017. All rights reserved.