28#ifndef __TERRALIB_GRAPH_INTERNAL_GRAPHDATA_H
29#define __TERRALIB_GRAPH_INTERNAL_GRAPHDATA_H
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
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.
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
VertexMap & getVertexMap()
It returns the the vertex map.
Vertex * getVertex(int id)
~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,...
Namespace for the Map Tools module of TerraLib.
Configuration flags for the Graph module of TerraLib.
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.