60 explicit NodeMerge(
int level) : m_mergedNode(-1), m_level(level) { }
89 void initReverseIndizes();
107 edge getEdge(
unsigned int index);
108 node getNode(
unsigned int index);
136 void reInsertAll(std::vector<MultilevelGraph *> &components);
137 void copyNodeTo(
node v,
MultilevelGraph &MLG, std::map<node, node> &tempNodeAssociations,
bool associate,
int index = -1);
138 void copyEdgeTo(
edge e,
MultilevelGraph &MLG, std::map<node, node> &tempNodeAssociations,
bool associate,
int index = -1);
139 void writeGML(std::ostream &os);
140 void writeGML(
const char *fileName);
144 std::vector<MultilevelGraph *> splitIntoComponents();
151 std::vector<edge> moveEdgesToParent(
NodeMerge * NM,
node theNode,
node parent,
bool deleteDoubleEndges,
int adjustEdgeLengths);
153 node undoLastMerge();
155 void updateReverseIndizes();
157 void updateMergeWeights();
double averageRadius() const
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Data type for general directed graphs (adjacency list representation).
NodeArray< double > m_radius
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
std::vector< int > m_reverseNodeMergeWeight
EdgeArray< int > m_edgeAssociations
std::map< int, int > m_source
NodeArray< int > m_nodeAssociations
GraphAttributes & getGraphAttributes() const
Returns attributes of current level graph as GraphAttributes.
std::map< int, double > m_radius
std::vector< int > m_changedNodes
double y(node v) const
Returns the y-coordinate of node v.
EdgeArray< double > m_weight
std::map< int, int > m_target
NodeArray< double > & getRArray()
std::vector< int > m_changedEdges
void weight(edge e, double weight)
void radius(node v, double r)
Stores additional attributes of a graph (like layout information).
Class for the representation of edges.
double x(node v) const
Returns the x-coordinate of node v.
Class for the representation of nodes.
std::vector< node > m_reverseNodeIndex
std::vector< NodeMerge * > m_changes
Includes declaration of graph class.
int index() const
Returns the (unique) node index.
std::vector< std::pair< int, double > > m_position
#define OGDF_DEPRECATED(reason)
Mark a class / member / function as deprecated.
The namespace for all OGDF objects.
EdgeArray< double > & getWArray()
std::vector< int > m_deletedEdges
std::map< int, double > m_doubleWeight
std::vector< edge > m_reverseEdgeIndex