initial commit

This commit is contained in:
Ikatono
2024-10-04 16:11:55 -05:00
commit 80c051b44a
7 changed files with 288 additions and 0 deletions

0
graph/breadth.cpp Normal file
View File

16
graph/breadth.hpp Normal file
View 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