Creates an internal ordered graph model using the vertices passed in. If there are any, leftward edge need to be inverted in the internal model
the vertices for this hierarchy
whether or not to tighten vertices towards the sources
Count of the number of times the ancestor dfs has been used.
Map from graph edges to internal model edges
Stores the largest rank number allocated
The parent cell whose children are being laid out
Mapping from rank number to actual rank
Store of roots of this hierarchy model, these are real graph cells, not internal cells
High value to start source layering scan rank value from.
Whether or not to tighten the assigned ranks of vertices up towards the source cells.
Map from graph vertices to internal model nodes.
Creates all edges in the internal model
Reference to the
Array of Cells that represent the vertices whom are to have an internal representation created.
The array of GraphHierarchyNodes to have their information filled in using the real vertices.
Performs a depth first search on the internal hierarchy model
the parent internal node of the current internal node
the current internal node
the internal edge connecting the internal node and the parent internal node, if any
the visitor pattern to be called for each node
a set of all nodes seen by this dfs a set of all of the ancestor node of the current node
the layer on the dfs tree ( not the same as the model ranks )
Performs a depth first search on the internal hierarchy model. This dfs extends the default version by keeping track of cells ancestors, but it should be only used when necessary because of it can be computationally intensive for deep searches.
the parent internal node of the current internal node
the current internal node
the internal edge connecting the internal node and the parent internal node, if any
the visitor pattern to be called for each node
a set of all nodes seen by this dfs
the parent hash code
the new hash code for this node
the layer on the dfs tree ( not the same as the model ranks )
A depth first search through the internal heirarchy model.
The visitor function pattern to be called for each node.
Whether or not the search is to keep track all nodes directly above this one in the search path.
Internal model of a hierarchical graph. This model stores nodes and edges equivalent to the real graph nodes and edges, but also stores the rank of the cells, the order within the ranks and the new candidate locations of cells. The internal model also reverses edge direction were appropriate , ignores self-loop and groups parallels together under one edge object.