28 #ifndef __TERRALIB_GRAPH_INTERNAL_UNDIRECTEDGRAPH_H
29 #define __TERRALIB_GRAPH_INTERNAL_UNDIRECTEDGRAPH_H
32 #include "../Config.h"
43 class AbstractCachePolicy;
44 class AbstractGraphLoaderStrategy;
146 virtual std::vector<te::graph::Edge*>
getEdges(
int vId);
This is the main graph implementation, that uses a cache policy anda graph loader to get all elements...
This class is used to set the main functions of a cache policy.
This class define the main functions necessary to save and load the graph data and metadata informati...
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
This is the main graph implementation, that uses a cache policy anda graph loader to get all elements...
This is a implementation of a UndirectedGraph Graph. By definition a undirected graph has no directio...
virtual void add(Edge *e)
Add a new edge element to a graph.
UndirectedGraph(GraphMetadata *metadata)
Constructor.
UndirectedGraph()
constructor.
virtual bool isIsolateVertex(int id, bool &flag)
This function indicates if a desired element is a isolated vertex.
virtual std::vector< te::graph::Vertex * > getVertexNeighborhood(int id)
The neighborhood of a vertex v is an induced subgraph of the graph, formed by all vertices adjacent t...
UndirectedGraph(AbstractCachePolicy *cp, AbstractGraphLoaderStrategy *ls)
Constructor.
~UndirectedGraph()
Virtual destructor.
virtual std::vector< te::graph::Edge * > getEdges(int vId)
It returns all edges that belongs to a vertex.
virtual void removeEdge(int id)
This function removes the edge element from graph, also was removed in data source.
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.