Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nperraud committed Aug 17, 2019
1 parent 74ea306 commit cc78ff2
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pygsp/tests/test_graphs.py
Expand Up @@ -583,24 +583,6 @@ def test_subgraph(self, n_vertices=100):
self.assertIs(graph.lap_type, self._G.lap_type)
self.assertEqual(graph.plotting, self._G.plotting)

def test_nngraph(self, n_vertices=30):
rs = np.random.RandomState(42)
Xin = rs.normal(size=(n_vertices, 3))
dist_types = ['euclidean', 'manhattan', 'max_dist', 'minkowski']

for dist_type in dist_types:

# Only p-norms with 1<=p<=infinity permitted.
if dist_type != 'minkowski':
graphs.NNGraph(Xin, kind='radius', dist_type=dist_type)
graphs.NNGraph(Xin, kind='knn', dist_type=dist_type)

# Distance type unsupported in the C bindings,
# use the C++ bindings instead.
if dist_type != 'max_dist':
graphs.NNGraph(Xin, use_flann=True, kind='knn',
dist_type=dist_type)

def test_bunny(self):
graphs.Bunny()

Expand Down

0 comments on commit cc78ff2

Please sign in to comment.