def shortest_path_undirected(self, u, v): path = nx.shortest_path(self._undirected, u, v) return path