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
e089bebb
Commit
e089bebb
authored
Apr 03, 2018
by
Tiago Peixoto
Browse files
uncertain_blockmodel: Fix sampling issues
parent
710f08bc
Changes
2
Show whitespace changes
Inline
Side-by-side
src/graph/inference/uncertain/graph_blockmodel_measured.hh
View file @
e089bebb
...
...
@@ -93,7 +93,10 @@ struct Measured
}
size_t
N
=
num_vertices
(
_g
);
if
(
_self_loops
)
_NP
=
graph_tool
::
is_directed
(
_g
)
?
N
*
N
:
(
N
*
(
N
+
1
))
/
2
;
else
_NP
=
graph_tool
::
is_directed
(
_g
)
?
N
*
(
N
-
1
)
:
(
N
*
(
N
-
1
))
/
2
;
_N
+=
(
_NP
-
gE
)
*
_n_default
;
_X
+=
(
_NP
-
gE
)
*
_x_default
;
...
...
src/graph/inference/uncertain/graph_blockmodel_uncertain_mcmc.hh
View file @
e089bebb
...
...
@@ -77,7 +77,7 @@ struct MCMC
{
size_t
u
=
_slist
[
ei
];
size_t
v
=
_tlist
[
ei
];
if
(
u
>
num_vertices
(
_state
.
_g
))
if
(
u
>
=
num_vertices
(
_state
.
_g
))
std
::
tie
(
u
,
v
)
=
_e
;
return
{
u
,
v
};
}
...
...
Write
Preview
Supports
Markdown
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