index.js
function setEdgeWeight(u, v, weight){
    edgeWeights[encodeEdge(u, v)] = weight;
    return graph;
  }
function setEdgeWeight(u, v, weight){
    edgeWeights[encodeEdge(u, v)] = weight;
    return graph;
  }
function setEdgeWeight ( u , v , weight ) { edgeWeights [ encodeEdge ( u , v ) ] = weight ; return graph ; }
Sets the weight of the given edge.
Sets the weight of the given edge .