50 merger->setFactor(2.0);
51 merger->setEdgeLengthAdjustment(0);
80 merger = getDoubleFactoredZeroAdjustedMerger<EdgeCoverMerger>();
96 merger = getDoubleFactoredZeroAdjustedMerger<LocalBiconnectedMerger>();
109int main(
int argc,
const char *argv[])
112 std::cout <<
"Usage: " << argv[0] <<
" (0|1|2)" << std::endl;
121 std::cerr <<
"Could not load Graph" << std::endl;
149 switch (argv[1][0]) {
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.
Includes declaration of graph class.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declares class GraphIO which provides access to all graph read and write functionality.
Decralation of GraphElement and GraphList classes.
Merges nodes with neighbour to get a Multilevel Graph.
MMM is a Multilevel Graph drawing Algorithm that can use different modules.
MLG is the main data structure for ModularMultilevelMixer.
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)
void setLayoutModule(LayoutModule *layout)
void setPacker(CCLayoutPackModule *packer)
The fast multipole embedder approach for force-directed layout.
void setNumIterations(uint32_t numIterations)
sets the maximum number of iterations
void setRandomize(bool b)
if true, layout algorithm will randomize the layout in the beginning
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.
void setMultilevelBuilder(MultilevelBuilder *levelBuilder)
Sets the multilevel builder module to levelBuilder.
void setLayoutRepeats(int times=1)
Determines how many times the one-level layout will be called.
void setInitialPlacer(InitialPlacer *placement)
Sets the initial placer module to placement.
void setLevelLayoutModule(LayoutModule *levelLayout)
Sets the one-level layout module to levelLayout.
Base class for merger modules.
void exportAttributes(GraphAttributes &GA) const
Class for the representation of nodes.
The PreprocessorLayout removes multi-edges and self-loops.
void setRandomizePositions(bool on)
Defines whether the positions of the node are randomized before the secondary layout call.
void call(Graph &G, MultilevelGraph &MLG)
void setLayoutModule(LayoutModule *layout)
Sets the secondary layout.
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 setSecondaryLayout(LayoutModule *layout)
Sets a LayoutModule that should be applied after scaling.
void setExtraScalingSteps(unsigned int steps)
Sets how often the scaling should be repeated.
void setLayoutRepeats(unsigned int repeats)
Sets how often the LayoutModule should be applied.
void setScalingType(ScalingType type)
Sets a ScalingType wich sets the relative scale for the Graph.
@ RelativeToDrawing
Scales by a factor relative to the drawing.
@ RelativeToDesiredLength
Scales by a factor relative to the desired Edgelength m_desEdgeLength.
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.