|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
55 hierNumber[v] = hierNum;
57 bool returnValue =
true;
72 node w = e->opposite(v);
79 UG.
type(e) = Graph::association;
88 returnValue =
dfsGenTreeRec(UG, used, hierNumber, hierNum, w, fakedGens, fakeTree);
126 for (
edge e : G.edges) {
133 int cycleCounter = 0;
135 sink = sinkPath->
target();
139 if (cycleCounter > G.numberOfEdges()) {
142 sink = sinkPath->
source();
The namespace for all OGDF objects.
Includes declaration of graph class.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
Declaration of class UMLGraph.
const Graph & constGraph() const
Returns a reference to the associated graph.
Class for adjacency list elements.
Graph::NodeType type(node v) const
Returns the type of node v.
edge theEdge() const
Returns the edge associated with this adjacency entry.
bool dfsGenTreeRec(UMLGraph &UG, EdgeArray< bool > &used, NodeArray< int > &hierNumber, int hierNum, node v, List< edge > &fakedGens, bool fakeTree)
Decralation of GraphElement and GraphList classes.
internal::GraphObjectContainer< AdjElement > adjEntries
The container containing all entries in the adjacency list of this node.
node source() const
Returns the source node of the edge.
bool dfsGenTree(UMLGraph &UG, List< edge > &fakedGens, bool fakeTree)
RegisteredArray for nodes, edges and adjEntries of a graph.
Data type for general directed graphs (adjacency list representation).
Decralation of graph iterators.
Basic declarations, included by all source files.
edge firstOutGen(UMLGraph &UG, node v, EdgeArray< bool > &)
Class for the representation of edges.
Declaration of doubly linked lists and iterators.
node target() const
Returns the target node of the edge.
Class for the representation of nodes.
bool isTree(const Graph &G)
Returns true iff G is a tree, i.e. contains no undirected cycle and is connected.
iterator pushBack(const E &x)
Adds element x at the end of the list.
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.