|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
50 merger->setFactor(2.0);
51 merger->setEdgeLengthAdjustment(0);
80 merger = getDoubleFactoredZeroAdjustedMerger<EdgeCoverMerger>();
96 merger = getDoubleFactoredZeroAdjustedMerger<LocalBiconnectedMerger>();
109 int 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]) {
void setScalingType(ScalingType type)
Sets a ScalingType wich sets the relative scale for the Graph.
The namespace for all OGDF objects.
Stores additional attributes of a graph (like layout information).
Declaration of class GraphAttributes which extends a Graph by additional attributes.
void setInitialPlacer(InitialPlacer *placement)
Sets the initial placer module to placement.
void exportAttributes(GraphAttributes &GA) const
static InitialPlacer * getBarycenterPlacer()
The barycenter placer for multilevel layout.
Includes declaration of graph class.
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.
void setLayoutModule(LayoutModule *layout)
MMM is a Multilevel Graph drawing Algorithm that can use different modules.
void setRandomize(bool b)
if true, layout algorithm will randomize the layout in the beginning
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)
void call(Graph &G, MultilevelGraph &MLG)
@ RelativeToDesiredLength
Scales by a factor relative to the desired Edgelength m_desEdgeLength.
The fast multipole embedder approach for force-directed layout.
The PreprocessorLayout removes multi-edges and self-loops.
static void configureFastLayout(ScalingLayout *sl, MultilevelBuilder *&merger, InitialPlacer *&placer)
The solar merger for multilevel layout.
static void configureNiceLayout(ScalingLayout *sl, MultilevelBuilder *&merger, InitialPlacer *&placer)
static bool readGML(Graph &G, std::istream &is)
Reads graph G in GML format from input stream is.
void weightedPositionPriority(bool on)
void setRandomizePositions(bool on)
Defines whether the positions of the node are randomized before the secondary layout call.
Places nodes at the barycenter of his neighbors.
Base class for placer modules.
Preprocessor Layout simplifies Graphs for use in other Algorithms.
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.
int main(int argc, const char *argv[])
internal::GraphObjectContainer< NodeElement > nodes
The container containing all node objects.
@ RelativeToDrawing
Scales by a factor relative to the drawing.
Merges nodes with neighbour to get a Multilevel Graph.
void setPacker(CCLayoutPackModule *packer)
Decralation of GraphElement and GraphList classes.
Declares class GraphIO which provides access to all graph read and write functionality.
Places Nodes with solar system rules.
void setLayoutRepeats(int times=1)
Determines how many times the one-level layout will be called.
Splits and packs the components of a Graph.
Data type for general directed graphs (adjacency list representation).
double height(node v) const
Returns the height of the bounding box of node v.
void setLayoutModule(LayoutModule *layout)
Sets the secondary layout.
Merges nodes with neighbour to get a Multilevel Graph.
Base class for merger modules.
Declaration of class TileToRowsCCPacker.
MLG is the main data structure for ModularMultilevelMixer.
void setLayoutRepeats(unsigned int repeats)
Sets how often the LayoutModule should be applied.
void setSecondaryLayout(LayoutModule *layout)
Sets a LayoutModule that should be applied after scaling.
Declaration of Fast-Multipole-Embedder layout algorithm.
ScalingLayout scales and calls a secondary layout.
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.
void setNumIterations(uint32_t numIterations)
sets the maximum number of iterations
static void configureNoTwistLayout(ScalingLayout *sl, MultilevelBuilder *&merger, InitialPlacer *&placer)
Scales a graph layout and calls a secondary layout algorithm.
Modular multilevel graph layout.
The solar placer for multilevel layout.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The tile-to-rows algorithm for packing drawings of connected components.
Class for the representation of nodes.
void setMultilevelBuilder(MultilevelBuilder *levelBuilder)
Sets the multilevel builder module to levelBuilder.
Merges nodes with solar system rules.
void setLevelLayoutModule(LayoutModule *levelLayout)
Sets the one-level layout module to levelLayout.
double width(node v) const
Returns the width of the bounding box of node v.