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
a65ce3df
Commit
a65ce3df
authored
Oct 25, 2014
by
Tiago Peixoto
Browse files
Fix SBM entropy with parallel edges and directed graphs
parent
66e5720f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/community/graph_blockmodel.hh
View file @
a65ce3df
...
...
@@ -297,17 +297,6 @@ struct entropy_parallel_edges
}
S
+=
get_parallel_neighbours_entropy
(
v
,
us
,
g
,
get_node
);
if
(
is_directed
::
apply
<
Graph
>::
type
::
value
)
{
us
.
clear
();
for
(
auto
e
:
in_edges_range
(
v
,
g
))
{
auto
u
=
source
(
e
,
g
);
us
[
u
]
+=
weight
[
e
];
}
S
+=
get_parallel_neighbours_entropy
(
v
,
us
,
g
,
get_node
);
}
}
}
};
...
...
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