28 #ifndef __TERRALIB_GRAPH_INTERNAL_GRAPHDATA_H
29 #define __TERRALIB_GRAPH_INTERNAL_GRAPHDATA_H
32 #include "../Config.h"
81 bool removeVertex(
int id);
91 VertexMap& getVertexMap();
99 void setVertexMap(
const VertexMap& map);
102 void addEdge(
Edge* e);
104 bool removeEdge(
int id);
106 Edge* getEdge(
int id);
114 EdgeMap& getEdgeMap();
122 void setEdgeMap(
const EdgeMap& map);
133 void setDirty(
bool status);
155 #endif // __TERRALIB_GRAPH_INTERNAL_GRAPHDATA_H
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.
VertexMap m_vertexMap
This map contains all vertexs from this graph.
EdgeMap m_edgeMap
This map contains all edges from this graph.
std::map< int, Vertex * > VertexMap
typedef for vertex map
From the point of view of graph theory, vertices are treated as featureless and indivisible objects...
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
This class define a important struct used to group a map of vertex and edges. A flag is used to indic...
bool m_dirty
Flag used to indicate that a element was changed.
std::map< int, Edge * > EdgeMap
typedef for edge map