Go to the documentation of this file. 1 #ifndef GRAPH_ANALYSIS_LEMON_DIRECTED_GRAPH_HPP
2 #define GRAPH_ANALYSIS_LEMON_DIRECTED_GRAPH_HPP
4 #include <lemon/adaptors.h>
5 #include <lemon/lgf_writer.h>
6 #include <lemon/connectivity.h>
8 #include "../BaseGraph.hpp"
21 typedef shared_ptr<DirectedGraph>
Ptr;
40 typedef graph_t::ArcMap< Edge::Ptr >
EdgeMap;
49 typedef graph_t::ArcMap< GraphElementId >
EdgeIdMap;
101 void write(std::ostream& ostream = std::cout)
const;
166 #endif // GRAPH_ANALYSIS_LEMON_DIRECTED_GRAPH_HPP
Edge::Ptr getEdge(graph_t::Arc arc) const
BaseGraph::Ptr newInstance() const
Definition: DirectedGraph.cpp:294
graph_t::NodeMap< bool > VertexActivationMap
Definition: DirectedGraph.hpp:43
Definition: NodeIterator.hpp:11
graph_t::Node getNode(const Vertex::Ptr &vertex) const
Definition: DirectedGraph.cpp:63
virtual GraphElementId addVertexInternal(const Vertex::Ptr &vertex)
Add a vertex.
Definition: DirectedGraph.cpp:26
shared_ptr< DirectedGraph > Ptr
Definition: DirectedGraph.hpp:21
Directed graph implementation based on lemon library.
Definition: DirectedGraph.hpp:18
Definition: ArcIterator.hpp:11
graph_t::ArcMap< GraphElementId > EdgeIdMap
Definition: DirectedGraph.hpp:49
void write(std::ostream &ostream=std::cout) const
Definition: DirectedGraph.cpp:133
VertexMap mVertexMap
Definition: DirectedGraph.hpp:160
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< BaseGraph > Ptr
Definition: BaseGraph.hpp:34
SubGraph::Ptr identifyConnectedComponents(const BaseGraph::Ptr &baseGraph) const
Definition: DirectedGraph.cpp:204
shared_ptr< Edge > Ptr
Definition: Edge.hpp:21
EdgeMap mEdgeMap
Definition: DirectedGraph.hpp:159
EdgeIterator::Ptr getOutEdgeIterator(const Vertex::Ptr &vertex) const
Definition: DirectedGraph.cpp:192
Definition: DirectedSubGraph.hpp:22
graph_t::NodeMap< Vertex::Ptr > VertexMap
Definition: DirectedGraph.hpp:41
graph_t::NodeMap< GraphElementId > VertexIdMap
Definition: DirectedGraph.hpp:50
Vertex::Ptr getVertex(graph_t::Node node) const
virtual SubGraph::Ptr createSubGraph(const BaseGraph::Ptr &graph) const
Definition: DirectedGraph.cpp:272
Definition: ArcIterator.hpp:74
GraphElementId addEdgeInternal(const Edge::Ptr &edge, GraphElementId sourceVertexId, GraphElementId targetVertexId)
Add an edge.
Definition: DirectedGraph.cpp:43
EdgeIterator::Ptr getEdgeIterator() const
Definition: DirectedGraph.cpp:180
graph_t::ArcMap< bool > EdgeActivationMap
Definition: DirectedGraph.hpp:44
Vertex::Ptr getTargetVertex(const Edge::Ptr &e) const
Get the target vertex for this edge.
Definition: DirectedGraph.cpp:101
uint32_t GraphElementId
Definition: GraphElement.hpp:21
graph_t::Arc getArc(const Edge::Ptr &edge) const
Definition: DirectedGraph.cpp:68
Definition: ArcIterator.hpp:42
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
graph_t::NodeMap< std::string > VertexStringMap
Definition: DirectedGraph.hpp:47
graph_t::ArcMap< Edge::Ptr > EdgeMap
Definition: DirectedGraph.hpp:40
DirectedSubGraph subgraph_t
Definition: DirectedGraph.hpp:53
BaseGraph::Ptr copy() const
Definition: DirectedGraph.cpp:289
DirectedGraph & operator=(const DirectedGraph &other)
Direct usage off operator= is disallowed in lemon, thus need for explicit usage of copy functions.
Definition: DirectedGraph.cpp:111
Definition: TypedGraph.hpp:9
virtual void removeEdgeInternal(const Edge::Ptr &)
Definition: DirectedGraph.cpp:56
Vertex::Ptr getSourceVertex(const Edge::Ptr &e) const
Get the source vertex for this edge.
Definition: DirectedGraph.cpp:95
EdgeIterator::Ptr getInEdgeIterator(const Vertex::Ptr &vertex) const
Definition: DirectedGraph.cpp:198
shared_ptr< SubGraph > Ptr
Definition: SubGraph.hpp:52
shared_ptr< EdgeIterator > Ptr
Definition: EdgeIterator.hpp:20
DirectedGraph()
Default constructor of the graph.
Definition: DirectedGraph.cpp:9
virtual void removeVertexInternal(const Vertex::Ptr &)
Definition: DirectedGraph.cpp:36
shared_ptr< VertexIterator > Ptr
Definition: VertexIterator.hpp:21
VertexIterator::Ptr getVertexIterator() const
Definition: DirectedGraph.cpp:174
~DirectedGraph()
Definition: DirectedGraph.cpp:23
graph_t::ArcMap< std::string > EdgeStringMap
Definition: DirectedGraph.hpp:46
bool isConnected() const override
Definition: DirectedGraph.cpp:267