|
graph_analysis
|
Implementation of a bipartite graph, that consists of a set of 'blue' nodes and of 'red' nodes. More...
#include <BipartiteGraph.hpp>
Public Member Functions | |
| BipartiteGraph () | |
| void | linkVertices (const Vertex::Ptr &red, const Vertex::Ptr &blue, const std::string &label="") |
| std::vector< Vertex::Ptr > | getPartners (const Vertex::Ptr &vertex) const |
| Vertex::Ptr | getUniquePartner (const Vertex::Ptr &vertex) const |
| SubGraph::Ptr | getRedSubGraph () const |
| SubGraph::Ptr | getBlueSubGraph () const |
Implementation of a bipartite graph, that consists of a set of 'blue' nodes and of 'red' nodes.
For the implementation a general graph will store all vertices and edges, while the two set of blue and red vertices will be identified through two corresponding SubGraph instances
| graph_analysis::BipartiteGraph::BipartiteGraph | ( | ) |
|
inline |
Get the subgraph that contains only blue vertices
| std::vector< Vertex::Ptr > graph_analysis::BipartiteGraph::getPartners | ( | const Vertex::Ptr & | vertex | ) | const |
Get all vertex partner, i.e. vertices
|
inline |
Get the subgraph that contains only red vertices
| Vertex::Ptr graph_analysis::BipartiteGraph::getUniquePartner | ( | const Vertex::Ptr & | vertex | ) | const |
Retrieve the single partner
| if | there are more partner than 1 |
| void graph_analysis::BipartiteGraph::linkVertices | ( | const Vertex::Ptr & | red, |
| const Vertex::Ptr & | blue, | ||
| const std::string & | label = "" |
||
| ) |
1.8.13