V - the vertex type.E - the edge type.public class HawickJamesSimpleCycles<V,E> extends java.lang.Object implements DirectedSimpleCycles<V,E>
See:
K. A. Hawick, H. A. James. Enumerating Circuits and Loops in Graphs with Self-Arcs and
Multiple-Arcs. Computational Science Technical Note CSTN-013, 2008
| Constructor and Description |
|---|
HawickJamesSimpleCycles()
Create a simple cycle finder with an unspecified graph.
|
HawickJamesSimpleCycles(Graph<V,E> graph)
Create a simple cycle finder for the specified graph.
|
| Modifier and Type | Method and Description |
|---|---|
long |
countSimpleCycles()
Count the number of simple cycles.
|
java.util.List<java.util.List<V>> |
findSimpleCycles()
Find the simple cycles of the graph.
|
Graph<V,E> |
getGraph()
Get the graph
|
void |
printSimpleCycles()
Print to the standard output all simple cycles without building a list to keep them, thus
avoiding high memory consumption when investigating large and much connected graphs.
|
void |
setGraph(Graph<V,E> graph)
Set the graph
|
public HawickJamesSimpleCycles()
public HawickJamesSimpleCycles(Graph<V,E> graph) throws java.lang.IllegalArgumentException
graph - the DirectedGraph in which to find cycles.java.lang.IllegalArgumentException - if the graph argument is
null.public java.util.List<java.util.List<V>> findSimpleCycles() throws java.lang.IllegalArgumentException
findSimpleCycles in interface DirectedSimpleCycles<V,E>null.java.lang.IllegalArgumentExceptionpublic void printSimpleCycles()
public long countSimpleCycles()
Copyright © 2019. All Rights Reserved.