Copies all values from the given edge to this edge.
Edge copy(Edge edge ) { from = edge.from; to = edge.to; cost = edge.cost; return this; }