Go to the documentation of this file.
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);
155 #endif // __TERRALIB_GRAPH_INTERNAL_UNDIRECTEDGRAPH_H
UndirectedGraph(AbstractCachePolicy *cp, AbstractGraphLoaderStrategy *ls)
Constructor.
This is a implementation of a UndirectedGraph Graph. By definition a undirected graph has no directio...
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
~UndirectedGraph()
Virtual destructor.
This is the main graph implementation, that uses a cache policy anda graph loader to get all elements...
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.
virtual bool isIsolateVertex(int id, bool &flag)
This function indicates if a desired element is a isolated vertex.
virtual void removeEdge(int id)
This function removes the edge element from graph, also was removed in data source.
virtual std::vector< te::graph::Edge * > getEdges(int vId)
It returns all edges that belongs to a vertex.
This is the main graph implementation, that uses a cache policy anda graph loader to get all elements...
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...
This class define the main functions necessary to save and load the graph data and metadata informati...
UndirectedGraph()
constructor.
UndirectedGraph(GraphMetadata *metadata)
Constructor.
This class is used to set the main functions of a cache policy.
virtual void add(Edge *e)
Add a new edge element to a graph.