I would like to spring-embed a (large) graph of which I know it is planar (on linux)
I downloaded the last version of OGDF and compiled and installed it (hopefully correctly, as root) Can anybody help me?
My graph will be a quite large graph, with a hierarchical structure.
Chatgtp proposed this program, but it seems to be missing the
#include <ogdf/planarity/PlanarEmbedding.h>
The proposed headers are
#include <ogdf/basic/Graph.h>
#include <ogdf/basic/GraphAttributes.h>
#include <ogdf/planarity/PlanarizationLayout.h>
#include <ogdf/planarity/PlanarEmbedding.h>
#include <ogdf/planarity/BoyerMyrvold.h>
#include <ogdf/energybased/FMMMLayout.h>
#include <fstream>
using namespace ogdf
the graph is then
node v1 = G.newNode();
node v2 = G.newNode();
node v3 = G.newNode();
node v4 = G.newNode();
G.newEdge(v1, v2);
G.newEdge(v2, v3);
G.newEdge(v3, v1);
G.newEdge(v3, v4);