V - the graph vertex typeE - the graph edge typepublic static class CycleBasisAlgorithm.CycleBasisImpl<V,E> extends Object implements CycleBasisAlgorithm.CycleBasis<V,E>, Serializable
| Constructor and Description | 
|---|
CycleBasisImpl(Graph<V,E> graph)
Construct a new instance. 
 | 
CycleBasisImpl(Graph<V,E> graph,
              Set<List<E>> cycles,
              int length,
              double weight)
Construct a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Set<List<E>> | 
getCycles()
Return the set of cycles of the cycle basis. 
 | 
Set<GraphPath<V,E>> | 
getCyclesAsGraphPaths()
Return the set of cycles of the cycle basis. 
 | 
int | 
getLength()
Get the length of the cycle basis. 
 | 
double | 
getWeight()
Get the weight of the cycle basis. 
 | 
public CycleBasisImpl(Graph<V,E> graph)
graph - the graphpublic Set<List<E>> getCycles()
getCycles in interface CycleBasisAlgorithm.CycleBasis<V,E>public int getLength()
getLength in interface CycleBasisAlgorithm.CycleBasis<V,E>public double getWeight()
getWeight in interface CycleBasisAlgorithm.CycleBasis<V,E>public Set<GraphPath<V,E>> getCyclesAsGraphPaths()
getCyclesAsGraphPaths in interface CycleBasisAlgorithm.CycleBasis<V,E>Copyright © 2019. All rights reserved.