Skip to content

Commit

Permalink
Merge pull request #1076 from angriman/fix/spsp-python-test
Browse files Browse the repository at this point in the history
Remove unused code in test_distance.py
  • Loading branch information
fabratu committed Jun 7, 2023
2 parents f7c62a0 + c9fa398 commit 4350ea6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions networkit/test/test_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,10 @@ def testSPSP(self):
spsp = nk.distance.SPSP(g, sources, targets)
spsp.run()
dists = spsp.getDistances()
#if len(targets) > 0:
# dist = spsp.getDistance(nSources,targets[0])
#print(dist)
#self.assertEqual(dist, dist)
self.assertEqual(len(dists), nSources)
for distList in dists:
self.assertEqual(len(distList), nTargets)

def testMultiTargetSTSP(self):
for g in self.genERGraphs():
source = nk.graphtools.randomNode(g)
Expand All @@ -193,7 +189,6 @@ def testMultiTargetSTSP(self):
else:
algo = nk.distance.MultiTargetBFS(g, source, targets)
algo.setTargets(targets)
#algo.setTarget(targets[0])
algo.setSource(source)
algo.run()
self.assertLessEqual(len(algo.getPredecessors()), g.numberOfNodes())
Expand Down

0 comments on commit 4350ea6

Please sign in to comment.