ExpandBreadthFirst can also have optional input

Reviewers: teon.banek

Reviewed By: teon.banek

Differential Revision: https://phabricator.memgraph.io/D735
This commit is contained in:
florijan 2017-09-01 14:09:36 +02:00
parent 77e574fcc5
commit 0a5e9256f1

View File

@ -918,7 +918,7 @@ ExpandBreadthFirst::ExpandBreadthFirst(
inner_node_symbol_(inner_node_symbol),
inner_edge_symbol_(inner_edge_symbol),
where_(where),
input_(input),
input_(input ? input : std::make_shared<Once>()),
input_symbol_(input_symbol),
existing_node_(existing_node),
graph_view_(graph_view) {}