Skip to content
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

Closed
faheel opened this issue Feb 6, 2017 · 6 comments
Closed

Add graph traversal algorithms #11

faheel opened this issue Feb 6, 2017 · 6 comments

Comments

@faheel
Copy link
Member

faheel commented Feb 6, 2017

Create a folder named Graph in the root directory. Inside it, the following graph traversal algorithms are to be added:

Use either an adjacency list (recommended) or an adjacency matrix to implement an undirected weighted graph.

Use STL containers such as std::queue and std::stack for implementing a queue and stack respectively.

Create a header file named Graph.h (in DataStructures/Graph) and implement the basic functions for getting inputs from the user, such as:

  • number of vertices
  • number of edges
  • starting vertex
  • edge info (source, destination and weight)
@Dehorser
Copy link

I'd love to take this one.

@Dehorser
Copy link

How should I represent the vertices? I'm currently using a struct named "vertex."

@Dehorser
Copy link

Just kidding. I notice another user has taken this job.

@faheel
Copy link
Member Author

faheel commented Jul 12, 2017

Note

As 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.
Once the classes are added, anyone interested in taking this up, or other graph algorithms, can send their PRs. Please wait until then.

@faheel faheel removed the On hold label Jul 21, 2017
@faheel
Copy link
Member Author

faheel commented Jul 21, 2017

Issue #74 is now closed

@faheel
Copy link
Member Author

faheel commented Sep 1, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants