#include <iostream>
#include <vector>
usingnamespace std;
void BSF(int s, int t){
// n is number of nodes in graph and s is root point
// keep track of visited node
bool *visited = newbool[n];
for(int i = 0 ; i < n; i++) // Initialize all nodes as unvisited
{
visited[i] = false;
}
/*
-- What does the value 0 represent?
-- Put first node on queue of nodes to visit
s.d := 0
*/
std::vector<int> Q;
visited[s] = true;
Q.push_back(s);
cout << " The first vertex is " << s << endl;
//While there are more nodes to visit
while(Q != -1){
int current = Q.pop_up();
for(int i =0 ; i < n; i++)
{
if(visited[i] == false)
{
n.distance = current.distance + 1;
n.parent = current;
Q.push_back(i);
}
}
}
}