copy method

Edge copy(
  1. Edge edge
)

Copies all values from the given edge to this edge.

Implementation

Edge copy(Edge edge ) {
	from = edge.from;
	to = edge.to;
	cost = edge.cost;

	return this;
}