Open Azer0s opened 4 years ago
Hi! I know how to implement BFS algorithm in C++ using numeric data types. Are we going to use templates so as to allow any data type as value of node? Also, are there any prerequisites to contribute?
@rudreshr17 Hi! That's amazing! Yes, Edge
actually already has a map (std::map<std::string, std::any>
) for properties.
As or weights, the vertices also have that map. In the future, one will be able to pass on the field name of the field where the weight of a vertex is. So for instance:
g->shortest_path_weighted<int>("PHX", "BKK", "distance");
Which means that the weight type is an int
and the weight is stored in the vertex in the property map under the key distance
.
As for prerequisites: no prerequisites, just do a PR ^^ Although #8 has the highest priority right now (I kinda want to sort out the basics before getting started with algorithms)