29 #include "../../common/STLUtils.h" 30 #include "../core/Edge.h" 31 #include "../core/GraphCache.h" 32 #include "../core/GraphData.h" 33 #include "../core/GraphDataManager.h" 34 #include "../core/GraphMetadata.h" 35 #include "../core/Vertex.h" 36 #include "../graphs/Graph.h" 58 std::vector<te::graph::Vertex*> vec;
76 vec.push_back(vNeighbor);
162 std::vector<te::graph::Edge*> vec;
virtual void removeEdge(int id)
This function removes the edge element from graph, also was removed in data source.
GraphMetadata * m_metadata
Graph Data loader strategy.
DirectedGraph()
constructor.
virtual void removeEdge(int id)
This function removes the edge element from graph, also was removed in data source.
virtual te::graph::Edge * getEdge(int id)
It returns the edge element if it's exist.
int getId()
It returns the edge identification.
GraphData * checkCacheByVertexId(int id)
This functions check in cache if the vertex element with a given id was alredy in memory...
From the point of view of graph theory, vertices are treated as featureless and indivisible objects...
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...
virtual bool isSinkVertex(int id, bool &flag)
This function indicates if a desired element is a sink vertex.
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
This class is used to set the main functions of a cache policy.
GraphCache * m_graphCache
Class used to keep all graph data loaded.
This class define the main functions necessary to save and load the graph data and metadata informati...
std::set< int > & getSuccessors()
Returns the Successors vector.
virtual void add(Vertex *v)
Add a new vertex element to a graph.
int getIdFrom()
It returns the vertex origin identification.
virtual void add(Edge *e)
Add a new edge element to a graph.
virtual std::vector< te::graph::Edge * > getOutEdges(int vId)
It returns all edges that came out a vertex.
GraphData * m_graphData
This class has the graph data and properties.
virtual te::graph::Vertex * getVertex(int id)
It returns the vertex element if it's exist.
This is the main graph implementation, that uses a cache policy anda graph loader to get all elements...
~DirectedGraph()
Virtual destructor.
int getIdTo()
It returns the vertex destiny identification.
This is a implementation of a Directed Graph. By convention a directed graph provides access to out-e...