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 EdgeIterator::Ptr getInEdgeIterator(const Vertex::Ptr &vertex) const
Definition: DirectedGraph.cpp:198
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
~DirectedGraph()
Definition: DirectedGraph.cpp:23
uint32_t GraphElementId
Definition: GraphElement.hpp:21
Definition: TypedGraph.hpp:9
Definition: ArcIterator.hpp:11
Definition: DirectedSubGraph.hpp:22
EdgeIterator::Ptr getEdgeIterator() const
Definition: DirectedGraph.cpp:180
graph_t::ArcMap< Edge::Ptr > EdgeMap
Definition: DirectedGraph.hpp:40
virtual void removeVertexInternal(const Vertex::Ptr &)
Definition: DirectedGraph.cpp:36
graph_t::NodeMap< bool > VertexActivationMap
Definition: DirectedGraph.hpp:43
BaseGraph::Ptr copy() const
Definition: DirectedGraph.cpp:289
GraphElementId addEdgeInternal(const Edge::Ptr &edge, GraphElementId sourceVertexId, GraphElementId targetVertexId)
Add an edge.
Definition: DirectedGraph.cpp:43
graph_t::Node getNode(const Vertex::Ptr &vertex) const
Definition: DirectedGraph.cpp:63
Definition: ArcIterator.hpp:74
SubGraph::Ptr identifyConnectedComponents(const BaseGraph::Ptr &baseGraph) const
Definition: DirectedGraph.cpp:204
Vertex::Ptr getSourceVertex(const Edge::Ptr &e) const
Get the source vertex for this edge.
Definition: DirectedGraph.cpp:95
graph_t::NodeMap< std::string > VertexStringMap
Definition: DirectedGraph.hpp:47
shared_ptr< Edge > Ptr
Definition: Edge.hpp:21
virtual void removeEdgeInternal(const Edge::Ptr &)
Definition: DirectedGraph.cpp:56
DirectedSubGraph subgraph_t
Definition: DirectedGraph.hpp:53
graph_t::ArcMap< bool > EdgeActivationMap
Definition: DirectedGraph.hpp:44
virtual SubGraph::Ptr createSubGraph(const BaseGraph::Ptr &graph) const
Definition: DirectedGraph.cpp:272
graph_t::Arc getArc(const Edge::Ptr &edge) const
Definition: DirectedGraph.cpp:68
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
Definition: NodeIterator.hpp:11
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
shared_ptr< EdgeIterator > Ptr
Definition: EdgeIterator.hpp:20
graph_t::NodeMap< GraphElementId > VertexIdMap
Definition: DirectedGraph.hpp:50
BaseGraph::Ptr newInstance() const
Definition: DirectedGraph.cpp:294
Definition: ArcIterator.hpp:42
bool isConnected() const override
Definition: DirectedGraph.cpp:267
VertexIterator::Ptr getVertexIterator() const
Definition: DirectedGraph.cpp:174
Vertex::Ptr getVertex(graph_t::Node node) const
shared_ptr< DirectedGraph > Ptr
Definition: DirectedGraph.hpp:21
virtual GraphElementId addVertexInternal(const Vertex::Ptr &vertex)
Add a vertex.
Definition: DirectedGraph.cpp:26
shared_ptr< SubGraph > Ptr
Definition: SubGraph.hpp:52
graph_t::ArcMap< std::string > EdgeStringMap
Definition: DirectedGraph.hpp:46
VertexMap mVertexMap
Definition: DirectedGraph.hpp:160
shared_ptr< VertexIterator > Ptr
Definition: VertexIterator.hpp:21
EdgeIterator::Ptr getOutEdgeIterator(const Vertex::Ptr &vertex) const
Definition: DirectedGraph.cpp:192
shared_ptr< BaseGraph > Ptr
Definition: BaseGraph.hpp:34
EdgeMap mEdgeMap
Definition: DirectedGraph.hpp:159
Edge::Ptr getEdge(graph_t::Arc arc) const
graph_t::ArcMap< GraphElementId > EdgeIdMap
Definition: DirectedGraph.hpp:49
DirectedGraph()
Default constructor of the graph.
Definition: DirectedGraph.cpp:9
Directed graph implementation based on lemon library.
Definition: DirectedGraph.hpp:18
Vertex::Ptr getTargetVertex(const Edge::Ptr &e) const
Get the target vertex for this edge.
Definition: DirectedGraph.cpp:101
void write(std::ostream &ostream=std::cout) const
Definition: DirectedGraph.cpp:133
graph_t::NodeMap< Vertex::Ptr > VertexMap
Definition: DirectedGraph.hpp:41