Weighted Graph
-
template<class T>
class WGraph : public Graph -
Public Functions
-
inline WGraph()
-
inline WGraph(const int vertexCount, const bool isDirected)
-
inline void reset(const int vertexCount, const bool isDirected)
Reset the graph.
-
inline T weight(const int vertex, const int neighbourPos) const
Returns the weight of the n-th out-edge of a vertex.
-
inline void setWeight(const int vertex, const int neighbourPos, const T weight)
Sets the weight of the n-th out-edge of a vertex.
Private Functions
-
inline void addEdge(const int vertex1, const int vertex2) = delete
-
inline WGraph()