graph_analysis
Public Member Functions | Public Attributes | List of all members
graph_analysis::lemon::DirectedSubGraph Class Reference

#include <DirectedSubGraph.hpp>

Inheritance diagram for graph_analysis::lemon::DirectedSubGraph:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::lemon::DirectedSubGraph:
Collaboration graph
[legend]

Public Member Functions

 DirectedSubGraph (const shared_ptr< DirectedGraph > &graph)
 
void enable (const Vertex::Ptr &vertex)
 
void disable (const Vertex::Ptr &vertex)
 
void enable (const Edge::Ptr &edge)
 
void disable (const Edge::Ptr &edge)
 
bool enabled (const Vertex::Ptr &vertex) const
 
bool enabled (const Edge::Ptr &vertex) const
 
- Public Member Functions inherited from graph_analysis::SubGraphImpl< SubGraphLemon >
 SubGraphImpl (shared_ptr< BaseGraph > graph)
 
virtual ~SubGraphImpl ()
 
graph_t & raw ()
 
const graph_t & raw () const
 
- Public Member Functions inherited from graph_analysis::SubGraph
 SubGraph (const shared_ptr< BaseGraph > &graph)
 
virtual ~SubGraph ()
 
bool disabled (const Vertex::Ptr &vertex) const
 
bool disabled (const Edge::Ptr &edge) const
 
void enableAllVertices ()
 
void enableAllEdges ()
 
void disableAllVertices ()
 
void disableAllEdges ()
 
void applyFilters (const Filter< Vertex::Ptr >::Ptr &vertexFilter, const Filter< Edge::Ptr >::Ptr &edgeFilter)
 
virtual shared_ptr< BaseGraph > toBaseGraph () const
 
virtual VertexIterator::Ptr getVertexIterator () const
 
virtual EdgeIterator::Ptr getEdgeIterator () const
 
virtual EdgeIterator::Ptr getEdgeIterator (const Vertex::Ptr &vertex) const
 
shared_ptr< BaseGraph > getBaseGraph () const
 
- Public Member Functions inherited from graph_analysis::VertexIterable
virtual ~VertexIterable ()
 
virtual uint64_t getVertexCount () const
 
- Public Member Functions inherited from graph_analysis::EdgeIterable
virtual ~EdgeIterable ()
 
virtual uint64_t getEdgeCount () const
 

Public Attributes

::lemon::ListDigraph::NodeMap< bool > mNodeMap
 
::lemon::ListDigraph::ArcMap< bool > mArcMap
 

Additional Inherited Members

- Public Types inherited from graph_analysis::SubGraphImpl< SubGraphLemon >
typedef SubGraphLemon graph_t
 
- Public Types inherited from graph_analysis::SubGraph
typedef shared_ptr< SubGraph > Ptr
 
- Protected Member Functions inherited from graph_analysis::SubGraphImpl< SubGraphLemon >
void setSubgraph (graph_t *subgraph)
 
- Protected Attributes inherited from graph_analysis::SubGraphImpl< SubGraphLemon >
shared_ptr< graph_t > mpSubgraph
 
- Protected Attributes inherited from graph_analysis::SubGraph
shared_ptr< BaseGraph > mpBaseGraph
 Ptr which refers to the original (super) graph. More...
 
std::set< GraphElementId > mDisabledVertices
 
std::set< GraphElementId > mDisabledEdges
 

Detailed Description

A subgraph that provides a subset of an existing graph

Constructor & Destructor Documentation

◆ DirectedSubGraph()

graph_analysis::lemon::DirectedSubGraph::DirectedSubGraph ( const shared_ptr< DirectedGraph > &  graph)

Member Function Documentation

◆ disable() [1/2]

void graph_analysis::lemon::DirectedSubGraph::disable ( const Edge::Ptr &  edge)
virtual

Disable the given edge

Parameters
edgeEdge that is part of the underlying main graph and should not be part of the subgraph

Reimplemented from graph_analysis::SubGraph.

◆ disable() [2/2]

void graph_analysis::lemon::DirectedSubGraph::disable ( const Vertex::Ptr &  vertex)
virtual

Disable the given vertex

Parameters
vertexVertex that is part of the underlying main graph and should not(!) be part of the subgraph

Reimplemented from graph_analysis::SubGraph.

◆ enable() [1/2]

void graph_analysis::lemon::DirectedSubGraph::enable ( const Edge::Ptr &  edge)
virtual

Enable the given edge

Parameters
edgeEdge that is part of the underlying main graph and should be part of the subgraph

Reimplemented from graph_analysis::SubGraph.

◆ enable() [2/2]

void graph_analysis::lemon::DirectedSubGraph::enable ( const Vertex::Ptr &  vertex)
virtual

Enable the given vertex

Parameters
vertexVertex that is part of the underlying main graph and should also be part of the subgraph

Reimplemented from graph_analysis::SubGraph.

◆ enabled() [1/2]

bool graph_analysis::lemon::DirectedSubGraph::enabled ( const Edge::Ptr &  edge) const
virtual

Test if an edge is enabled

Returns
True if edge is enabled, false otherwise

Reimplemented from graph_analysis::SubGraph.

◆ enabled() [2/2]

bool graph_analysis::lemon::DirectedSubGraph::enabled ( const Vertex::Ptr &  vertex) const
virtual

Test if a vertex is enabled

Returns
True if vertex is enabled, false otherwise

Reimplemented from graph_analysis::SubGraph.

Member Data Documentation

◆ mArcMap

::lemon::ListDigraph::ArcMap<bool> graph_analysis::lemon::DirectedSubGraph::mArcMap

◆ mNodeMap

::lemon::ListDigraph::NodeMap<bool> graph_analysis::lemon::DirectedSubGraph::mNodeMap

The documentation for this class was generated from the following files: