Skip to content

Instantly share code, notes, and snippets.

View Mapoet's full-sized avatar
🎯
Focusing

Mapoet Mapoet

🎯
Focusing
View GitHub Profile
@tanayseven
tanayseven / AI1.cpp
Last active March 17, 2022 15:55
BFS and DFS implementation on graphs for use in AI in C++
#include <iostream>
using namespace std;
const short int TRUE = 1, FALSE = 0;
template <class ListType>//type of data each evrtex stores
class Graph
{
private:
int max;
struct vertex;//forward declaration for vertex structure