Closed 09ac5a22-6a87-4290-8c34-5c8dd760bfaf closed 4 years ago
shortest_path_lengths method in generic_graph.py makes self.weighted=True, when called with Dijkstra_Boost or Bellman-Ford_Boost See the code below
shortest_path_lengths
generic_graph.py
Bellman-Ford_Boost
sage: G = graphs.PathGraph(7) sage: G.weighted() False sage: G.shortest_path_lengths(0,algorithm='Dijkstra_Boost') {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6} sage: G.weighted() True
CC: @dcoudert
Component: graph theory
Keywords: gsoc20
Author: Vipul Gupta
Branch/Commit: 556f496
556f496
Reviewer: David Coudert
Issue created by migration from https://trac.sagemath.org/ticket/29734
Commit: 556f496
Branch: u/gh-vipul79321/ticket29734
LGTM.
Changed keywords from none to gsoc20
Changed branch from u/gh-vipul79321/ticket29734 to 556f496
shortest_path_lengths
method ingeneric_graph.py
makes self.weighted=True, when called with Dijkstra_Boost orBellman-Ford_Boost
See the code belowCC: @dcoudert
Component: graph theory
Keywords: gsoc20
Author: Vipul Gupta
Branch/Commit:
556f496
Reviewer: David Coudert
Issue created by migration from https://trac.sagemath.org/ticket/29734