fn other_endpoint<G>( network: G, edge: G::EdgeRef, vertex: G::NodeId, ) -> G::NodeIdwhere G: NodeIndexable + IntoEdges,
Gets the other endpoint of graph edge, if any, otherwise panics.