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

laplacian(): Remove innocuous warning

parent ba7eacbe
......@@ -292,7 +292,7 @@ def laplacian(g, deg="total", normalized=False, weight=None, index=None):
index = g.vertex_index
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
if not g.is_directed():
E *= 2
Supports Markdown
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