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
c040f44d
Commit
c040f44d
authored
Jun 22, 2013
by
Tiago Peixoto
Browse files
Return _really_ at most n_max subgraphs in subgraph_isomorphism()
parent
5781125c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/topology/graph_subgraph_isomorphism.hh
View file @
c040f44d
...
...
@@ -271,7 +271,8 @@ void find_mappings(const Graph1& sub, const Graph2& g, matrix_t& M0,
iter
!=
M_prime
[
ni
].
end
();
++
iter
)
{
F
.
push_back
(
std
::
make_pair
(
ni
,
*
iter
));
FF
.
push_back
(
F
);
if
(
max_n
==
0
||
FF
.
size
()
<
max_n
)
FF
.
push_back
(
F
);
F
.
pop_back
();
}
...
...
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