4 ms·
Show HN: Graph Playground - Make Graphs/Networks and run Algorithms
- timthelion 9y agoThe Königsberg bridges graph is wrong. There should be seven edges. https://en.wikipedia.org/wiki/Seven_Bridges_of_K%C3%B6nigsberg https://en.wikipedia.org/wiki/Seven_Bridges_of_K%C3%B6nigsbe...
- djhworld 9y agoIf you label the nodes in the graph with a value (e.g. 'A') then try running one of the search algorithms (BFS) with 'A' to 'C' or whatever, it doesn't work. I think you're supposed to put a node ID in there instead, but it's not very clear
- philipov 9y agoHere's a link to the git repo: https://github.com/MikeDombo/graphPlayground https://github.com/MikeDombo/graphPlayground
- gavinpc 9y agoVery nice. Doesn't work if cookies are blocked. Use a try/catch to feature-test localStorage. So many times but it's not getting to me.
- lmeyerov 9y agoThis idea is very cool! Would you be interested in splitting out the predefined graphs into another repo / into an npm package? I'd love to use+extend as part of PyGraphistry!
- mikedombo 9y agoI'll definitely consider that. The whole predefined graphs file is only about 90 lines for the relevant bits if you just want to copy that into your project.