pub type SharedPair<S, E, C> = (PathPair<S, E>, C, usize);
A pair with its total cost and its number of shared edges.