Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tiago Peixoto
graph-tool
Commits
d5ff8f90
Commit
d5ff8f90
authored
Jun 06, 2010
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix edge count bug in condensation_graph()
parent
e4e05a4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/graph/community/graph_community_network.hh
src/graph/community/graph_community_network.hh
+2
-1
src/graph_tool/community/__init__.py
src/graph_tool/community/__init__.py
+2
-2
No files found.
src/graph/community/graph_community_network.hh
View file @
d5ff8f90
...
...
@@ -92,8 +92,9 @@ struct get_community_network
ce
=
comm_edges
[
make_pair
(
ct
,
cs
)];
else
{
ce
=
add_edge
(
cs
,
ct
,
cg
).
first
;
ce
=
add_edge
(
cs
,
ct
,
cg
).
first
;
comm_edges
[
make_pair
(
cs
,
ct
)]
=
ce
;
cedge_index
[
ce
]
=
comm_edges
.
size
()
-
1
;
}
edge_count
[
ce
]
+=
get
(
weight
,
*
e
);
}
...
...
src/graph_tool/community/__init__.py
View file @
d5ff8f90
...
...
@@ -341,7 +341,7 @@ def condensation_graph(g, prop, weight=None):
libgraph_tool_community
.
community_network
(
g
.
_Graph__graph
,
gp
.
_Graph__graph
,
_prop
(
"v"
,
g
,
prop
),
_prop
(
"v"
,
g
,
vcount
),
_prop
(
"e"
,
g
,
ecount
),
_prop
(
"v"
,
g
p
,
vcount
),
_prop
(
"e"
,
g
p
,
ecount
),
_prop
(
"e"
,
g
,
weight
))
return
gp
,
vcount
,
ecount
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