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
8d546347
Commit
8d546347
authored
Jan 07, 2020
by
Tiago Peixoto
Browse files
inference: speedup addition of new groups
parent
85d8c6c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/graph/inference/blockmodel/graph_blockmodel.hh
View file @
8d546347
...
...
@@ -1119,7 +1119,7 @@ public:
for
(
auto
&
p
:
_partition_stats
)
p
.
add_block
();
if
(
!
_egroups
.
empty
())
_egroups
.
init
(
_b
,
_eweight
,
_g
,
_bg
);
_egroups
.
add_block
(
);
if
(
_coupled_state
!=
nullptr
)
_coupled_state
->
coupled_resize_vertex
(
r
);
sync_emat
();
...
...
src/graph/inference/blockmodel/graph_blockmodel_elist.hh
View file @
8d546347
...
...
@@ -67,6 +67,11 @@ public:
}
}
void
add_block
()
{
_egroups
.
emplace_back
();
}
void
clear
()
{
_egroups
.
clear
();
...
...
src/graph/inference/overlap/graph_blockmodel_overlap.hh
View file @
8d546347
...
...
@@ -1152,7 +1152,7 @@ public:
for
(
auto
&
p
:
_partition_stats
)
p
.
add_block
();
if
(
!
_egroups
.
empty
())
_egroups
.
init
(
_b
,
_eweight
,
_g
,
_bg
);
_egroups
.
add_block
(
);
if
(
_coupled_state
!=
nullptr
)
_coupled_state
->
coupled_resize_vertex
(
r
);
sync_emat
();
...
...
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