V
- the vertex typeE
- the edge typepublic class QueueBFSFundamentalCycleBasis<V,E> extends AbstractFundamentalCycleBasis<V,E>
For information on algorithms computing fundamental cycle bases see the following paper: Narsingh Deo, G. Prabhu, and M. S. Krishnamoorthy. Algorithms for Generating Fundamental Cycles in a Graph. ACM Trans. Math. Softw. 8, 1, 26-42, 1982.
The total length of the fundamental-cycle set can be as large as $O(n^3)$ where $n$ is the number of vertices of the graph.
CycleBasisAlgorithm.CycleBasis<V,E>, CycleBasisAlgorithm.CycleBasisImpl<V,E>
graph
Constructor and Description |
---|
QueueBFSFundamentalCycleBasis(Graph<V,E> graph)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected Map<V,E> |
computeSpanningForest()
Compute a spanning forest of the graph using a straightforward BFS implementation.
|
getCycleBasis
protected Map<V,E> computeSpanningForest()
The representation assumes that the map contains the predecessor edge of each vertex in the forest. The predecessor edge is the forest edge that was used to discover the vertex. If no such edge was used (the vertex is a leaf in the forest) then the corresponding entry must be null.
computeSpanningForest
in class AbstractFundamentalCycleBasis<V,E>
Copyright © 2018. All rights reserved.