initial commit
This commit is contained in:
0
graph/breadth.cpp
Normal file
0
graph/breadth.cpp
Normal file
16
graph/breadth.hpp
Normal file
16
graph/breadth.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef H_DD59527C0C7B481DBB78E4BCF068E1CA
|
||||
#define H_DD59527C0C7B481DBB78E4BCF068E1CA
|
||||
|
||||
#include <ranges>
|
||||
#include <vector>
|
||||
|
||||
template <typename NodeType>
|
||||
struct GraphPath
|
||||
{
|
||||
std::vector<NodeType> path;
|
||||
};
|
||||
|
||||
template <typename NodeType>
|
||||
GraphPath<NodeType> breadthSearch(const NodeIterable &nodes, const EdgeIterable &edges);
|
||||
|
||||
#endif //H_DD59527C0C7B481DBB78E4BCF068E1CA
|
||||
Reference in New Issue
Block a user