56 hierNumber[v] = hierNum;
58 bool returnValue =
true;
62 if (e->
source() == v)
continue;
64 if (used[e])
continue;
67 node w = e->opposite(v);
72 if (hierNumber[w] == hierNum)
77 UG.
type(e) = Graph::association;
85 returnValue =
dfsGenTreeRec(UG, used, hierNumber, hierNum, w, fakedGens, fakeTree);
87 if (!returnValue)
return false;
97 if (e->
target() == v)
continue;
131 node sink = e->target();
133 int cycleCounter = 0;
136 sink = sinkPath->
target();
144 sink = sinkPath->
source();
153 if (!isTree)
return false;
node target() const
Returns the target node of the edge.
edge theEdge() const
Returns the edge associated with this adjacency entry.
iterator pushBack(const E &x)
Adds element x at the end of the list.
Data type for general directed graphs (adjacency list representation).
bool dfsGenTree(UMLGraph &UG, List< edge > &fakedGens, bool fakeTree)
Declaration of class UMLGraph.
internal::GraphObjectContainer< EdgeElement > edges
The container containing all edge objects.
int numberOfEdges() const
Returns the number of edges in the graph.
Declaration of EdgeRouter...
edge firstOutGen(UMLGraph &UG, node v, EdgeArray< bool > &)
bool dfsGenTreeRec(UMLGraph &UG, EdgeArray< bool > &used, NodeArray< int > &hierNumber, int hierNum, node v, List< edge > &fakedGens, bool fakeTree)
Class for the representation of edges.
Class for the representation of nodes.
const Graph & constGraph() const
Returns a reference to the associated graph.
Graph::NodeType type(node v) const
Returns the type of node v.
bool isTree(const Graph &G)
Returns true iff G is a tree, i.e. contains no undirected cycle and is connected. ...
node source() const
Returns the source node of the edge.
The namespace for all OGDF objects.
Class for adjacency list elements.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
internal::GraphObjectContainer< AdjElement > adjEntries
The container containing all entries in the adjacency list of this node.