Go to the documentation of this file. 1 #ifndef GRAPH_ANALYSIS_SNAP_DIRECTED_GRAPH_HPP
2 #define GRAPH_ANALYSIS_SNAP_DIRECTED_GRAPH_HPP
4 #include "../VertexIterator.hpp"
5 #include "../EdgeIterator.hpp"
6 #include "../TypedGraph.hpp"
12 #include <snap/snap-core/Snap.h>
33 void Save(TSOut& SOut)
const {}
49 typedef shared_ptr<DirectedGraph>
Ptr;
128 #endif // GRAPH_ANALYSIS_SNAP_DIRECTED_GRAPH_HPP
T value_t
Definition: DirectedGraph.hpp:23
graph_analysis::EdgeIterator::Ptr getOutEdgeIterator(const Vertex::Ptr &vertex) const
Definition: DirectedGraph.cpp:110
Vertex::Ptr getTargetVertex(const Edge::Ptr &e) const
Get the target vertex for this edge.
Definition: DirectedGraph.cpp:80
Serializable(T value)
Definition: DirectedGraph.hpp:29
virtual GraphElementId addEdgeInternal(const Edge::Ptr &edge, GraphElementId sourceVertexId, GraphElementId targetVertexId)
Add an edge.
Definition: DirectedGraph.cpp:48
Serializable()
Definition: DirectedGraph.hpp:26
Vertex::Ptr getVertex(GraphElementId id) const
Get the vertex by id.
Definition: DirectedGraph.cpp:63
BaseGraph::Ptr newInstance() const
Definition: DirectedGraph.cpp:28
Edge::Ptr getEdge(GraphElementId id) const
Get the edge by id.
Definition: DirectedGraph.cpp:68
shared_ptr< DirectedGraph > Ptr
Definition: DirectedGraph.hpp:49
Definition: DirectedGraph.hpp:21
void Save(TSOut &SOut) const
Definition: DirectedGraph.hpp:33
T value
Definition: DirectedGraph.hpp:24
~DirectedGraph()
Definition: DirectedGraph.cpp:12
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< BaseGraph > Ptr
Definition: BaseGraph.hpp:34
VertexIterator::Ptr getVertexIterator() const
Definition: DirectedGraph.cpp:89
shared_ptr< Edge > Ptr
Definition: Edge.hpp:21
Definition: EdgeIterator.hpp:41
DirectedGraph()
Default constructor of the graph.
Definition: DirectedGraph.cpp:7
TNodeEdgeNet< Serializable< Vertex::Ptr >, Serializable< Edge::Ptr > > SnapDigraph
Definition: DirectedGraph.hpp:39
uint32_t GraphElementId
Definition: GraphElement.hpp:21
Vertex::Ptr getSourceVertex(const Edge::Ptr &e) const
Get the source vertex for this edge.
Definition: DirectedGraph.cpp:74
Definition: EdgeIterator.hpp:10
graph_analysis::EdgeIterator::Ptr getInEdgeIterator(const Vertex::Ptr &vertex) const
Definition: DirectedGraph.cpp:116
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
virtual GraphElementId addVertexInternal(const Vertex::Ptr &vertex)
Add a vertex.
Definition: DirectedGraph.cpp:33
Directed graph implementation based on SNAP library.
Definition: DirectedGraph.hpp:46
Definition: TypedGraph.hpp:9
shared_ptr< SubGraph > Ptr
Definition: SubGraph.hpp:52
virtual SubGraph::Ptr createSubGraph(const BaseGraph::Ptr &baseGraph) const
Definition: DirectedGraph.cpp:122
shared_ptr< EdgeIterator > Ptr
Definition: EdgeIterator.hpp:20
Definition: NodeIterator.hpp:10
virtual void removeEdgeInternal(const Edge::Ptr &edge)
Definition: DirectedGraph.cpp:57
BaseGraph::Ptr copy() const
Definition: DirectedGraph.cpp:15
shared_ptr< VertexIterator > Ptr
Definition: VertexIterator.hpp:21
graph_analysis::EdgeIterator::Ptr getEdgeIterator() const
Definition: DirectedGraph.cpp:98
virtual void removeVertexInternal(const Vertex::Ptr &vertex)
Remove vertex from the graph.
Definition: DirectedGraph.cpp:42
Definition: EdgeIterator.hpp:74