-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add graph traversal algorithms #11
Comments
I'd love to take this one. |
How should I represent the vertices? I'm currently using a struct named "vertex." |
Just kidding. I notice another user has taken this job. |
NoteAs I mentioned in issue #70, I will be adding 4 classes for directed and undirected graphs using adjacency matrix and adjacency list representations, but only after issue #74 is taken care of. |
Issue #74 is now closed |
Closing this since there haven't been any updates for a long time. If you'd like to work on graph traversal algorithms, please open a new issue for each such algorithm. |
Create a folder named
Graph
in the root directory. Inside it, the following graph traversal algorithms are to be added:Traversal/BreadthFirstSearch.cpp
)Traversal/DepthFirstSearch.cpp
)Use either an adjacency list (recommended) or an adjacency matrix to implement an undirected weighted graph.
Use STL containers such as
std::queue
andstd::stack
for implementing a queue and stack respectively.Create a header file named
Graph.h
(inDataStructures/Graph
) and implement the basic functions for getting inputs from the user, such as:The text was updated successfully, but these errors were encountered: