copy method

  1. @override
PathEdge copy()
override

Make a copy, want to ensure immutability in some places

Implementation

@override
PathEdge copy() => LineEdge(from, to);