Commit 01432d60 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

laplacian(): Remove innocuous warning

parent ba7eacbe
Pipeline #243 failed with stage
in 310 minutes and 40 seconds
...@@ -292,7 +292,7 @@ def laplacian(g, deg="total", normalized=False, weight=None, index=None): ...@@ -292,7 +292,7 @@ def laplacian(g, deg="total", normalized=False, weight=None, index=None):
index = g.vertex_index index = g.vertex_index
V = g.num_vertices() V = g.num_vertices()
nself = label_self_loops(g, mark_only=True).a.sum() nself = int(label_self_loops(g, mark_only=True).a.sum())
E = g.num_edges() - nself E = g.num_edges() - nself
if not g.is_directed(): if not g.is_directed():
E *= 2 E *= 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment