Version: 1.0
Public Member Functions | Public Attributes | List of all members
graph Struct Reference

#include <connectivity_graph.h>

Public Member Functions

 graph (size_t n)
 
auto size () const
 
auto & operator[] (size_t i)
 
auto & operator[] (size_t i) const
 
void set_name (size_t i, const std::string &name)
 
void DetachNode (size_t i)
 
void DetachNode (const std::string &name)
 
bool Write (const std::string &filename)
 

Public Attributes

std::vector< std::string > nodes_
 
std::map< std::string, size_t > rnodes_
 
std::vector< std::vector< int > > arcs_
 

Detailed Description

Definition at line 19 of file connectivity_graph.h.

Constructor & Destructor Documentation

◆ graph()

graph::graph ( size_t  n)
inline

Definition at line 24 of file connectivity_graph.h.

Member Function Documentation

◆ DetachNode() [1/2]

void graph::DetachNode ( const std::string &  name)
inline

Definition at line 42 of file connectivity_graph.h.

◆ DetachNode() [2/2]

void graph::DetachNode ( size_t  i)
inline

Definition at line 37 of file connectivity_graph.h.

◆ operator[]() [1/2]

auto& graph::operator[] ( size_t  i)
inline

Definition at line 28 of file connectivity_graph.h.

◆ operator[]() [2/2]

auto& graph::operator[] ( size_t  i) const
inline

Definition at line 29 of file connectivity_graph.h.

◆ set_name()

void graph::set_name ( size_t  i,
const std::string &  name 
)
inline

Definition at line 31 of file connectivity_graph.h.

◆ size()

auto graph::size ( ) const
inline

Definition at line 26 of file connectivity_graph.h.

◆ Write()

bool graph::Write ( const std::string &  filename)

Definition at line 89 of file connectivity_graph.cpp.

Member Data Documentation

◆ arcs_

std::vector<std::vector<int> > graph::arcs_

Definition at line 22 of file connectivity_graph.h.

◆ nodes_

std::vector<std::string> graph::nodes_

Definition at line 20 of file connectivity_graph.h.

◆ rnodes_

std::map<std::string, size_t> graph::rnodes_

Definition at line 21 of file connectivity_graph.h.


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