Hierarchical Edge Bundle 1.0
|
#include <Graph.h>
This class provides methods for creating, editing and deleting graphs. Is possible to:
Graph::Graph | ( | void | ) |
standard constructor
Graph::~Graph | ( | void | ) |
standard deconstructor
void Graph::AddHierarchicEdge | ( | HierarchyPtr | edge | ) |
This method adds a hierarchy edge to the graph.
void Graph::AddHierarchy | ( | Hierarchy | hierarchy | ) |
This method adds a hierarchy level to the graph
hierarchy[Hierarchy] | hierarchy level |
void Graph::AddRelationEdge | ( | RelationPtr | edge | ) |
This method adds a relation edge to the graph.
void Graph::AddVertex | ( | VertexPtr | vert | ) |
This method adds a new node to the graph
vert | [VertexPtr] new node |
void Graph::Calculate | ( | ) |
This method calculates all needed information from the tree
void Graph::CalculateHierarchy | ( | ) |
This method calculates the hierarchy level of each node
std::vector< unsigned int > Graph::CalculatePathOverLCA | ( | RelationPtr | edge | ) |
This method calculates the LCA for a passed relation edge
edge | [RelationPtr] relation edge |
This method calculates the LCA form a passed start note to a passed end node.
start | [RelationPtr] start node |
end | [RelationPtr] end node |
void Graph::CalculatePathToRoot | ( | ) |
void Graph::CalculatePathToRoot | ( | VertexPtr | actPath, |
std::vector< unsigned int > | path | ||
) |
std::vector< VertexPtr > Graph::GetAllVerticesWithoutChild | ( | ) |
This method returns all nodes without a child node.
Hierarchy Graph::GetHierarchyAt | ( | int | level | ) |
This method returns the hierarchy
level[int] | selected hierarchy |
HierarchyPtr Graph::GetHierarchyEdgeAt | ( | unsigned int | at | ) |
This method returns the hierarchy edge at a passed position.
count | [int] position of the edge |
HierarchyPtr Graph::GetHierarchyEdgeWithID | ( | unsigned int | id | ) |
This method returns a hierarchy edge to the corresponding id
count | [int] id of the edge |
unsigned int Graph::GetNumberOfHiearchicEdges | ( | ) |
This method returns the number of hierarchy edges
int Graph::GetNumberOfHierarchies | ( | ) |
This method returns the number of hierarchies
unsigned int Graph::GetNumberOfRelationEdges | ( | ) |
This method returns the number of relation edges
int Graph::GetNumberOfVertices | ( | ) |
This method returns the number of vertices.
RelationPtr Graph::GetRelationEdgeAt | ( | unsigned int | at | ) |
This method returns the Relation edge at a passed position.
count | [int] position of the edge |
RelationPtr Graph::GetRelationEdgeWithID | ( | unsigned int | id | ) |
This method returns a relation edge to the corresponding id
count | [int] id of the edge |
VertexPtr Graph::GetRoot | ( | ) |
This method returns the root.
VertexPtr] | root. |
std::vector< VertexPtr > Graph::GetVertexPtrVectorFromIDVector | ( | std::vector< unsigned int > | ids | ) |
This method converts a list of IDs to a list of VertexPtr
ids | [std::vector<unsigned int>] list of id |
VertexPtr Graph::GetVertexWithID | ( | unsigned int | id | ) |
This method returns the node corresponding to the passed id
id | [unsigned int] id |
void Graph::RemoveHierarchy | ( | int | level | ) |
This method removes a hierarchy
level[int] | hierarchy to remove |
void Graph::RemoveVertex | ( | Vertex & | vert | ) |
This method removes the passed node.
vert | [Vertex] Node to delete. |
void Graph::RemoveVertexWithID | ( | unsigned int | id | ) |
This method removes the node corresponding to the passed id.
id | [unsigned int] id |
void Graph::SetHierarchyAt | ( | int | level, |
Hierarchy | hierarchy | ||
) |
This method updates a adds a hierarchy edge to the graph
level[int] | hierarchy to update |
hierarchy[Hierarchy] | hierarchy level |
void Graph::SetNumberOfHierarchies | ( | int | count | ) |
This method sets the number of hierarchies .
count | [int] number of hierarchies |
void Graph::SetRoot | ( | int | id | ) |
This method set the node corresponding to the passed id as root.
id | [int] id of the root. |
vector<Hierarchy> Graph::m_hierarchy [protected] |
std::map<unsigned int, HierarchyPtr> Graph::m_hierarchyedges [protected] |
VertexPtr Graph::m_pkRoot [protected] |
std::map<unsigned int, RelationPtr> Graph::m_relationedge [protected] |
std::map<unsigned int, VertexPtr> Graph::m_vertices [protected] |