22 #ifndef TULIPTOOGDF_H_
23 #define TULIPTOOGDF_H_
25 #include <ogdf/basic/GraphAttributes.h>
26 #include <ogdf/fileformats/GmlParser.h>
28 #include <tulip/tulipconf.h>
29 #include <tulip/Graph.h>
30 #include <tulip/TlpTools.h>
31 #include <tulip/StringProperty.h>
32 #include <tulip/ForEach.h>
48 class TLP_OGDF_SCOPE TulipToOGDF {
54 void saveToGML(
const char * fileName);
57 ogdf::GraphAttributes &getOGDFGraphAttr();
58 ogdf::Graph &getOGDFGraph();
60 ogdf::node getOGDFGraphNode(
unsigned int nodeIndex);
61 ogdf::edge getOGDFGraphEdge(
unsigned int edgeIndex);
63 tlp::Coord getNodeCoordFromOGDFGraphAttr(
unsigned int nodeIndex);
69 vector<tlp::Coord> getEdgeCoordFromOGDFGraphAttr(
unsigned int edgeIndex);
73 ogdf::Graph ogdfGraph;
74 ogdf::GraphAttributes ogdfAttributes;
76 MutableContainer<ogdf::node> ogdfNodes;
77 MutableContainer<ogdf::edge> ogdfEdges;