the nodes, their labels and the counts shared by the realizations
More...
#include <ADS/graph/Graph.h>
|
| bool | directed (void) const |
| | whether the graph is oriented
|
| int | n (void) const |
| | the number of nodes, the G.n of the book
|
| int | m (void) const |
| | the number of edges, an unoriented one counted once
|
| int | bound (void) const |
| | the names of the nodes are in \( [ 0 , \mathrm{bound}() ) \)
|
| bool | hasNode (int u) const |
| | whether \( u \) is a node
|
| std::vector< int > | V (void) const |
| | the set of the nodes, in increasing order
|
| const T & | label (int u) const |
| | the label of the node \( u \)
|
| void | setLabel (int u, const T &t) |
| | the label of the node \( u \) becomes \( t \)
|
| auto | nodes (void) const |
| | the nodes in increasing order, bidirectional
|
|
| | GraphNodes (int n, bool directed) |
| int | addNode (const T &t) |
| | a new node of label \( t \), and its name
|
| int | check (int u) const |
| | \( u \), which must be a node
|
| void | edge (int u, int v) const |
| | \( u \) and \( v \) must be two distinct nodes
|
| bool | nodesCounted (void) const |
| | n() counts the names in use, and each has a label
|
|
| bool | f_directed |
| | oriented or not
|
| std::vector< bool > | f_alive |
| | whether a name is a node
|
| std::vector< T > | f_label |
| | the labels
|
| int | f_n = 0 |
| | the number of nodes
|
| int | f_m = 0 |
| | the number of edges
|
template<class T>
class ADS::GraphNodes< T >
the nodes, their labels and the counts shared by the realizations
◆ GraphNodes()
- Precondition
- \( n \ge 0 \)
◆ addNode()
a new node of label \( t \), and its name
◆ bound()
the names of the nodes are in \( [ 0 , \mathrm{bound}() ) \)
◆ check()
\( u \), which must be a node
◆ directed()
whether the graph is oriented
◆ edge()
\( u \) and \( v \) must be two distinct nodes
◆ hasNode()
whether \( u \) is a node
◆ label()
the label of the node \( u \)
- Precondition
- \( u \) is a node
◆ m()
the number of edges, an unoriented one counted once
◆ n()
the number of nodes, the G.n of the book
◆ nodes()
the nodes in increasing order, bidirectional
◆ nodesCounted()
n() counts the names in use, and each has a label
◆ setLabel()
the label of the node \( u \) becomes \( t \)
- Precondition
- \( u \) is a node
◆ V()
the set of the nodes, in increasing order
◆ f_alive
◆ f_directed
◆ f_label
◆ f_m
◆ f_n
The documentation for this class was generated from the following file: