#include <graph.h>
Public Types | |
typedef std::pair< Vertex, Vertex > | Edge |
typedef long int | Vertex |
typedef float | Weight |
Public Member Functions | |
void | addEdge (Vertex v1, Vertex v2, Weight w) |
graph (Vertex vCount=0) | |
std::vector< Weight > & | operator[] (Vertex v) |
Vertex | vertexCount () const |
Private Attributes | |
std::vector< std::vector < Weight > > | graph_ |
typedef std::pair<Vertex, Vertex> graph::Edge |
typedef long int graph::Vertex |
typedef float graph::Weight |
graph::graph | ( | Vertex | vCount = 0 | ) | [inline] |
void graph::addEdge | ( | Vertex | v1, |
Vertex | v2, | ||
Weight | w | ||
) | [inline] |
Vertex graph::vertexCount | ( | ) | const [inline] |
std::vector<std::vector<Weight> > graph::graph_ [private] |