50 explicit PathData(
int targetSunParam = 0,
double len = 0.0f,
int num = 0)
51 : targetSun(targetSunParam), length(len), number(num) { }
78 explicit SolarMerger(
bool simple =
false,
bool massAsNodeRadius =
false);
Includes declaration of graph class.
Declaration of MultilevelBuilder.
Basic declarations, included by all source files.
Data type for general directed graphs (adjacency list representation).
Base class for merger modules.
Class for the representation of nodes.
The solar merger for multilevel layout.
bool collapseSolarSystem(MultilevelGraph &MLG, node sun, int level)
std::vector< node > selectSuns(MultilevelGraph &MLG)
int calcSystemMass(node v)
bool m_sunSelectionSimple
NodeArray< std::vector< PathData > > m_pathDistances
double distanceToSun(node object, MultilevelGraph &MLG)
void addPath(node sourceSun, node targetSun, double distance)
void findInterSystemPaths(Graph &G, MultilevelGraph &MLG)
bool buildOneLevel(MultilevelGraph &MLG) override
This method constructs one more level on top of an existing MultilevelGraph.
NodeArray< int > m_celestial
SolarMerger(bool simple=false, bool massAsNodeRadius=false)
std::map< int, std::map< int, PathData > > m_interSystemPaths
void buildAllLevels(MultilevelGraph &MLG) override
NodeArray< node > m_orbitalCenter
NodeArray< unsigned int > m_mass
NodeArray< double > m_distanceToOrbit
NodeArray< double > m_radius
RegisteredArray for nodes, edges and adjEntries of a graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
The namespace for all OGDF objects.
PathData(int targetSunParam=0, double len=0.0f, int num=0)