28 #ifndef __TERRALIB_GRAPH_INTERNAL_GRAPHDATA_H
29 #define __TERRALIB_GRAPH_INTERNAL_GRAPHDATA_H
32 #include "../Config.h"
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...
VertexMap & getVertexMap()
It returns the the vertex map.
int getId()
Get data identifier.
std::map< int, Vertex * > VertexMap
typedef for vertex map
bool removeVertex(int id)
EdgeMap & getEdgeMap()
It returns the the edge map.
Vertex * getVertex(int id)
bool isDirty()
Used to check the graph data state.
void setVertexMap(const VertexMap &map)
Used to set a map of vertex elements.
EdgeMap m_edgeMap
This map contains all edges from this graph.
GraphData(int id)
Default constructor.
void addVertex(Vertex *v)
void setDirty(bool status)
Flag used to define the graph data state.
void setEdgeMap(const EdgeMap &map)
Used to set a map of edge elements.
VertexMap m_vertexMap
This map contains all vertexs from this graph.
std::map< int, Edge * > EdgeMap
typedef for edge map
~GraphData()
Default destructor.
bool m_dirty
Flag used to indicate that a element was changed.
From the point of view of graph theory, vertices are treated as featureless and indivisible objects,...
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.