Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
01432d60
Commit
01432d60
authored
Jan 15, 2017
by
Tiago Peixoto
Browse files
laplacian(): Remove innocuous warning
parent
ba7eacbe
Pipeline
#243
failed with stage
in 310 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/spectral/__init__.py
View file @
01432d60
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment