Skip to content

Commit

Permalink
added private class to .h file
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahbigk77 committed Apr 14, 2022
1 parent b15887e commit e986125
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion province.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Province
void printAll(int start, std::ostream & output) const;

void printShortestPath(std::ostream & output) const;

/**
* Find shortest path from one town to another
*/
Expand All @@ -49,3 +49,12 @@ class Province
*/
~Province() { delete [] _towns; }

private:

int smallest(double dist [], std::list <int> toVisit, int numTowns) const;
std::vector<int> bfs(int start) const;
void dfsAux(int current, std::vector<int> & dfsTowns, bool visited []) const;




0 comments on commit e986125

Please sign in to comment.