31 ga.
label(v) = std::to_string(v->index());
44 for (
const node v : treeNode.
g->nodes) {
48 GraphIO::write(ga, std::string(
"output-node-") + std::to_string(i++) +
".svg",
Declaration of FourBlockTree.
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.
Declaration of class PlanarStraightLayout which represents a planar straight-line drawing algorithm.
Class for adjacency list elements.
adjEntry cyclicSucc() const
Returns the cyclic successor in the adjacency list.
Stores additional attributes of a graph (like layout information).
bool directed() const
Returns if the graph is directed.
const string & label(node v) const
Returns the label of node v.
static const long edgeStyle
Corresponds to edge attributes strokeColor(edge), strokeType(edge), and strokeWidth(edge).
static const long nodeLabel
Corresponds to node attribute label(node).
const Color & fillColor(node v) const
Returns the fill color of node v.
static const long nodeStyle
Corresponds to node attributes strokeColor(node), strokeType(node), strokeWidth(node),...
static const long edgeGraphics
Corresponds to edge attribute bends(edge).
static const long nodeGraphics
Corresponds to node attributes x(node), y(node), width(node), height(node), and shape(node).
Data type for general directed graphs (adjacency list representation).
internal::GraphObjectContainer< NodeElement > nodes
The container containing all node objects.
node firstNode() const
Returns the first node in the list of all nodes.
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 drawSVG(const GraphAttributes &A, std::ostream &os, const SVGSettings &settings)
Class for the representation of nodes.
adjEntry firstAdj() const
Returns the first entry in the adjaceny list.
void callFixEmbed(GraphAttributes &AG, adjEntry adjExternal=nullptr)
Calls the grid layout algorithm with a fixed planar embedding (general call).
Implementation of the Planar-Straight layout algorithm.
Declaration of basic types for graphics.
void randomPlanarConnectedGraph(Graph &G, int n, int m)
Creates a random connected (simple) planar (embedded) graph.
The namespace for all OGDF objects.
Declaration of randomized graph generators.
A node in a 4-block tree.
NodeArray< node > originalNodes
The nodes in the original graph corresponding to the nodes in g.
adjEntry externalFace
A half-edge in g such that the external face of g is to its right.
static std::unique_ptr< FourBlockTree > construct(const Graph &g, adjEntry externalFace)
Construct a 4-block tree of the given graph.
std::unique_ptr< Graph > g
The 4-connected component.