Template Class PointerGraph
Defined in File PointerGraph.h
Nested Relationships
Nested Types
Class Documentation
-
template<class T, class W = int>
class PointerGraph an oriented graph of node objects linked by pointers
Public Functions
-
PointerGraph(void) = default
-
PointerGraph(const PointerGraph&) = delete
-
PointerGraph &operator=(const PointerGraph&) = delete
-
inline int n(void) const
-
void insertEdge(Node *u, Node *v, const W &w = W())
the edge ( u , v ) of weight w, if not there
- Pre:
u and v are nodes of the graph
- Post:
hasEdge( u , v )
-
std::vector<Node*> adjacent(const Node *u) const
the nodes adjacent to u
- Pre:
u is a node of the graph
-
struct Edge
an edge, to its other end
-
struct Node
a node
-
PointerGraph(void) = default