36 #ifndef _FINRESDYN_GRAPH_H_ 37 #define _FINRESDYN_GRAPH_H_ 45 #include "chomp/struct/digraph.h" 46 #include "chomp/struct/bitfield.h" 83 int getEdge (
int vertex,
int i)
const;
93 chomp::homology::diGraph<>
g;
140 chomp::homology::dummyArray compVertices, compEnds;
141 int n = chomp::homology::SCC_Tarjan (
g, compVertices, compEnds);
147 int period = chomp::homology::computePeriod (
g);
148 return (period == 1);
152 #endif // _FINRESDYN_GRAPH_H_ int countEdges(void) const
Returns the number of edges.
A directed graph class with some algorithms built-in.
void addVertex(void)
Adds a vertex.
chomp::homology::diGraph g
The underlying graph object.
bool checkAperiodic() const
Verifies if the graph is aperiodic.
int countVertices(void) const
Returns the number of vertices.
void addEdge(int target)
Adds an edge starting at the last vertex.
int getEdge(int vertex, int i) const
Retrieves the given edge that leaves the given vertex.
bool checkStronglyConnected() const
Verifies if the graph is strongly connected.