Template Class GraphNodes
Defined in File Graph.h
Nested Relationships
Nested Types
Inheritance Relationships
Derived Types
public ADS::ListGraph< W, T >(Template Class ListGraph)public ADS::MatrixGraph< W, T >(Template Class MatrixGraph)
Class Documentation
-
template<class T>
class GraphNodes the nodes, their labels and the counts shared by the realizations
Subclassed by ADS::ListGraph< W, T >, ADS::MatrixGraph< W, T >
Public Functions
-
inline bool directed(void) const
-
inline int n(void) const
the number of nodes, the G.n of the book
-
inline int m(void) const
the number of edges, an unoriented one counted once
-
bool hasNode(int u) const
-
std::vector<int> V(void) const
the set of the nodes, in increasing order
-
inline auto nodes(void) const
the nodes in increasing order, bidirectional
Protected Functions
-
GraphNodes(int n, bool directed)
- Pre:
n >= 0
-
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
Protected Attributes
-
bool f_directed
oriented or not
-
std::vector<bool> f_alive
whether a name is a node
-
int f_n = 0
the number of nodes
-
int f_m = 0
the number of edges
-
struct Alive
the names in use, for SlotIterator
-
inline bool directed(void) const