[Python-modules-commits] r17863 - in packages/python-networkx/trunk/debian (3 files)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Sun Jul 17 11:53:09 UTC 2011
Date: Sunday, July 17, 2011 @ 11:53:07
Author: morph
Revision: 17863
* debian/patches/40_astar_unique_shortest_path.diff
- make A* shortest paths unique; Closes: #634083
Added:
packages/python-networkx/trunk/debian/patches/40_astar_unique_shortest_path.diff
Modified:
packages/python-networkx/trunk/debian/changelog
packages/python-networkx/trunk/debian/patches/series
Modified: packages/python-networkx/trunk/debian/changelog
===================================================================
--- packages/python-networkx/trunk/debian/changelog 2011-07-16 22:17:14 UTC (rev 17862)
+++ packages/python-networkx/trunk/debian/changelog 2011-07-17 11:53:07 UTC (rev 17863)
@@ -1,3 +1,10 @@
+python-networkx (1.5-2) UNRELEASED; urgency=low
+
+ * debian/patches/40_astar_unique_shortest_path.diff
+ - make A* shortest paths unique; Closes: #634083
+
+ -- Sandro Tosi <morph at debian.org> Sun, 17 Jul 2011 13:08:46 +0200
+
python-networkx (1.5-1) unstable; urgency=low
* New upstream release
Added: packages/python-networkx/trunk/debian/patches/40_astar_unique_shortest_path.diff
===================================================================
--- packages/python-networkx/trunk/debian/patches/40_astar_unique_shortest_path.diff (rev 0)
+++ packages/python-networkx/trunk/debian/patches/40_astar_unique_shortest_path.diff 2011-07-17 11:53:07 UTC (rev 17863)
@@ -0,0 +1,21 @@
+Description: Modify tests so that shortest paths are unique.
+Author: Loïc Séguin-Charbonneau <loicseguin at gmail.com>
+Index: networkx/algorithms/shortest_paths/tests/test_astar.py
+===================================================================
+--- python-networkx-1.5.orig/networkx/algorithms/shortest_paths/tests/test_astar.py (revision 5f7037a6e21a4a568ab02a7ef72d53c694d2b58f)
++++ python-networkx-1.5/networkx/algorithms/shortest_paths/tests/test_astar.py (revision 7d793561cc24884da1d6ccfcb37a1987108e92db)
+@@ -56,4 +56,5 @@
+ def test_astar_undirected(self):
+ GG=self.XG.to_undirected()
++ GG['y']['v']['weight'] = 2
+ assert nx.astar_path(GG,'s','v')==['s', 'x', 'u', 'v']
+ assert nx.astar_path_length(GG,'s','v')==8
+@@ -103,5 +104,7 @@
+ def test_astar_w1(self):
+ G=nx.DiGraph()
+- G.add_edges_from([('s','u'), ('s','x'), ('u','v'), ('u','x'), ('v','y'), ('x','u'), ('x','v'), ('x','y'), ('y','s'), ('y','v')])
++ G.add_edges_from([('s','u'), ('s','x'), ('u','v'), ('u','x'),
++ ('v','y'), ('x','u'), ('x','w'), ('w', 'v'), ('x','y'),
++ ('y','s'), ('y','v')])
+ assert nx.astar_path(G,'s','v')==['s', 'u', 'v']
+ assert nx.astar_path_length(G,'s','v')== 2
Modified: packages/python-networkx/trunk/debian/patches/series
===================================================================
--- packages/python-networkx/trunk/debian/patches/series 2011-07-16 22:17:14 UTC (rev 17862)
+++ packages/python-networkx/trunk/debian/patches/series 2011-07-17 11:53:07 UTC (rev 17863)
@@ -1,3 +1,4 @@
10_doc_relocation
20_example_dirs_remove
30_use_local_objects.inv
+40_astar_unique_shortest_path.diff
More information about the Python-modules-commits
mailing list