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
618b019e
Commit
618b019e
authored
Sep 29, 2014
by
Tiago Peixoto
Browse files
Throw exception if edge block labels are invalid in OverlapBlockState
parent
0b7e420e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/community/graph_blockmodel_overlap.cc
View file @
618b019e
...
...
@@ -447,6 +447,8 @@ struct get_eg_overlap
vertex_t
u
=
add_vertex
(
eg
);
vertex_t
v
=
add_vertex
(
eg
);
add_edge
(
u
,
v
,
eg
);
if
(
be
[
e
].
size
()
!=
2
)
throw
GraphException
(
"Edge block property map must have two values per edge"
);
b
[
u
]
=
be
[
e
][
0
];
b
[
v
]
=
be
[
e
][
1
];
node_index
[
u
]
=
s
;
...
...
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