Content-Length: 270508 | pFad | https://github.com/TheAlgorithms/Go/pull/418

31 feat: improving implementation of graphs by Tahmeed156 · Pull Request #418 · TheAlgorithms/Go · GitHub
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

feat: improving implementation of graphs #418

Merged
merged 3 commits into from
Oct 29, 2021

Conversation

Tahmeed156
Copy link
Contributor

The files graph.go and graph_test.go seemed to be incomplete and unused. I've made the following changes

  • Adding support for weighted graphs.
  • Adding support for directed graphs.
  • Adding tests for directed and undirected graphs.

These changes will be important for the further implementation of many graph algorithms.
Let me know of any suggestions to improve the current implementation.

raklaptudirm
raklaptudirm previously approved these changes Oct 26, 2021
Remove separate constructors for each type of class. Instead 
export the attribute `Directed` so that users can customize the 
`Graph` the way that they want. Similar to the implementation 
of `DefaultServer` in `net/http` package.
@raklaptudirm raklaptudirm added enhancement Reviewed This pull request has been reviewed. labels Oct 29, 2021
@raklaptudirm raklaptudirm merged commit ea1a59f into TheAlgorithms:master Oct 29, 2021
@Tahmeed156 Tahmeed156 deleted the directed-graph branch October 29, 2021 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Reviewed This pull request has been reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/TheAlgorithms/Go/pull/418

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy