We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 734c59d commit c600107Copy full SHA for c600107
1 file changed
mapalign/embed.py
@@ -61,8 +61,8 @@ def compute_diffusion_map(L, alpha=0.5, n_components=None, diffusion_time=0,
61
62
if not skip_checks:
63
from sklearn.manifold.spectral_embedding_ import _graph_is_connected
64
- if _graph_is_connected(L):
65
- print "Graph is connected"
+ if not _graph_is_connected(L):
+ raise ValueError('Graph is disconnected')
66
67
ndim = L.shape[0]
68
if overwrite:
0 commit comments