39 merger->setFactor(2.0);
40 merger->setEdgeLengthAdjustment(0);
75 sl->setExtraScalingSteps(0);
77 sl->setScalingType(ScalingLayout::ScalingType::RelativeToDrawing);
78 sl->setScaling(1.0, 1.0);
91 sl->setExtraScalingSteps(1);
94 sl->setScalingType(ScalingLayout::ScalingType::RelativeToDesiredLength);
95 sl->setScaling(5.0, 10.0);
101 std::cout <<
"Usage: " <<
argv[0] <<
" (0|1|2)" << std::endl;
110 std::cerr <<
"Could not load Graph" << std::endl;
125 fme->setNumIterations(1000);
126 fme->setRandomize(
false);
131 sl->setLayoutRepeats(1);
133 sl->setSecondaryLayout(
fme);
138 switch (
argv[1][0]) {
152 mmm->setLayoutRepeats(1);
154 mmm->setLevelLayoutModule(
sl);
165 csl->setLayoutModule(
mmm);
170 ppl.setRandomizePositions(
true);
176 mlg.exportAttributes(ga);
Places nodes at the barycenter of his neighbors.
Splits and packs the components of a Graph.
Merges nodes with neighbour to get a Multilevel Graph.
Declaration of Fast-Multipole-Embedder layout algorithm.
Declares class GraphIO which provides access to all graph read and write functionality.
Merges nodes with neighbour to get a Multilevel Graph.
MMM is a Multilevel Graph drawing Algorithm that can use different modules.
Preprocessor Layout simplifies Graphs for use in other Algorithms.
ScalingLayout scales and calls a secondary layout.
Merges nodes with solar system rules.
Places Nodes with solar system rules.
Declaration of class TileToRowsCCPacker.
The barycenter placer for multilevel layout.
void weightedPositionPriority(bool on)
The fast multipole embedder approach for force-directed layout.
Stores additional attributes of a graph (like layout information).
double height(node v) const
Returns the height of the bounding box of node v.
double width(node v) const
Returns the width of the bounding box of node v.
Data type for general directed graphs (adjacency list representation).
internal::GraphObjectContainer< NodeElement > nodes
The container containing all node objects.
static bool write(const Graph &G, const string &filename, WriterFunc writer=nullptr)
Writes graph G to a file with name filename and infers the format to use from the file's extension.
static bool writeGML(const Graph &G, std::ostream &os)
Writes graph G in GML format to output stream os.
static bool drawSVG(const GraphAttributes &A, std::ostream &os, const SVGSettings &settings)
static bool readGML(Graph &G, std::istream &is)
Reads graph G in GML format from input stream is.
static bool read(Graph &G, const string &filename, ReaderFunc reader=nullptr)
Reads graph G from a file with name filename and infers the used format from the file's extension.
Base class for placer modules.
Modular multilevel graph layout.
Base class for merger modules.
Class for the representation of nodes.
The PreprocessorLayout removes multi-edges and self-loops.
Scales a graph layout and calls a secondary layout algorithm.
void setScaling(double min, double max)
Sets the minimum and the maximum scaling factor.
void setExtraScalingSteps(unsigned int steps)
Sets how often the scaling should be repeated.
void setScalingType(ScalingType type)
Sets a ScalingType wich sets the relative scale for the Graph.
The solar merger for multilevel layout.
The solar placer for multilevel layout.
The tile-to-rows algorithm for packing drawings of connected components.
static void configureFastLayout(ScalingLayout *sl, MultilevelBuilder *&merger, InitialPlacer *&placer)
static void configureNiceLayout(ScalingLayout *sl, MultilevelBuilder *&merger, InitialPlacer *&placer)
static void configureNoTwistLayout(ScalingLayout *sl, MultilevelBuilder *&merger, InitialPlacer *&placer)
static InitialPlacer * getBarycenterPlacer()
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.