Skip to content

Commit c600107

Browse files
committed
skip_checks part, back to upstream version
1 parent 734c59d commit c600107

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mapalign/embed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def compute_diffusion_map(L, alpha=0.5, n_components=None, diffusion_time=0,
6161

6262
if not skip_checks:
6363
from sklearn.manifold.spectral_embedding_ import _graph_is_connected
64-
if _graph_is_connected(L):
65-
print "Graph is connected"
64+
if not _graph_is_connected(L):
65+
raise ValueError('Graph is disconnected')
6666

6767
ndim = L.shape[0]
6868
if overwrite:

0 commit comments

Comments
 (0)