Skip to content

Commit daae00c

Browse files
committed
[breadthFirstSearch] Fixed documentation and remove unnecessary function and headers in pgr_breadthFirstSearch.hpp
1 parent c807b5e commit daae00c

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

include/breadthFirstSearch/pgr_breadthFirstSearch.hpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2727

2828
#include <vector>
2929

30-
#include "cpp_common/basePath_SSEC.hpp"
3130
#include "cpp_common/pgr_base_graph.hpp"
32-
#include "cpp_common/pgr_messages.h"
3331
//******************************************
3432

3533
namespace pgrouting
@@ -46,17 +44,6 @@ class Pgr_breadthFirstSearch
4644

4745
public:
4846

49-
// 1 to depth
50-
std::vector<pgr_mst_rt> breadthFirstSearch(
51-
G &graph,
52-
int64_t start_vertex,
53-
int64_t depth){
54-
55-
pgr_mst_rt dummy = {0, 0, 0, 0, 0.0, 0.0};
56-
std::vector<pgr_mst_rt> dummyResults = {dummy};
57-
return dummyResults;
58-
59-
}
6047

6148
//many to depth
6249
std::vector<pgr_mst_rt> breadthFirstSearch(

sql/breadthFirstSearch/breadthFirstSearch.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3434
--ONE TO DEPTH
3535
CREATE OR REPLACE FUNCTION pgr_breadthFirstSearch(
3636
TEXT, -- edges_sql (required)
37-
BIGINT, -- from_vids (required)
37+
BIGINT, -- from_vid (required)
3838

3939
max_depth BIGINT DEFAULT 9223372036854775807,
4040
directed BOOLEAN DEFAULT true,

0 commit comments

Comments
 (0)