Lines Matching defs:weight
54 // its weight is set to the new weight.
55 void AddVertex(const Vertex& vertex, double weight) {
60 vertex_weights_[vertex] = weight;
63 // Uses weight = 1.0. If vertex already exists, its weight is set to
97 void AddEdge(const Vertex& vertex1, const Vertex& vertex2, double weight) {
106 edge_weights_[make_pair(vertex1, vertex2)] = weight;
108 edge_weights_[make_pair(vertex2, vertex1)] = weight;
112 // Uses weight = 1.0.
126 // the edge weight is zero.