Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tiago Peixoto
graph-tool
Commits
04a19cea
Commit
04a19cea
authored
Jun 30, 2011
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in modularity
parent
0cacbb0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/graph_tool/community/__init__.py
src/graph_tool/community/__init__.py
+1
-1
No files found.
src/graph_tool/community/__init__.py
View file @
04a19cea
...
...
@@ -273,7 +273,7 @@ def modularity(g, prop, weight=None):
:doi:`10.1073/pnas.0601602103`, :arxiv:`physics/0602124`
"""
ug
=
GraphView
(
directed
=
False
)
ug
=
GraphView
(
g
,
directed
=
False
)
m
=
libgraph_tool_community
.
modularity
(
ug
.
_Graph__graph
,
_prop
(
"e"
,
ug
,
weight
),
_prop
(
"v"
,
ug
,
prop
))
...
...
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