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/NumericProperty.h>
33 #include <tulip/ForEach.h>
49 class TLP_OGDF_SCOPE TulipToOGDF {
55 void saveToGML(
const char * fileName);
58 ogdf::GraphAttributes &getOGDFGraphAttr();
59 ogdf::Graph &getOGDFGraph();
61 ogdf::node getOGDFGraphNode(
unsigned int nodeIndex);
62 ogdf::edge getOGDFGraphEdge(
unsigned int edgeIndex);
64 tlp::Coord getNodeCoordFromOGDFGraphAttr(
unsigned int nodeIndex);
70 vector<tlp::Coord> getEdgeCoordFromOGDFGraphAttr(
unsigned int edgeIndex);
74 ogdf::Graph ogdfGraph;
75 ogdf::GraphAttributes ogdfAttributes;
77 MutableContainer<ogdf::node> ogdfNodes;
78 MutableContainer<ogdf::edge> ogdfEdges;