Graph-Visualization / graph-api

Backend containing all the algorithms of graphs
http://graph-apiv1.herokuapp.com
3 stars 8 forks source link

Added graph traversal - topological sort and flood fill #21

Closed aaditya-ag closed 3 years ago

aaditya-ag commented 3 years ago

The code can be tested using test cases listed in testcases file and by uncommenting the portion of code at bottom of the respective javascript files.

Fixes #6

Biswajitghosh98 commented 3 years ago

@aaditya-ag a screenshot of output would be great

aaditya-ag commented 3 years ago

floodFillinput Input for floodfill floodfilloutput Output for floodfill toposortinput Input for topological sorting toposort Output of topological sort

Both the classes return a list of vertices containing the required answers

Biswajitghosh98 commented 3 years ago

@aaditya-ag LGTM ! cc @yashrsharma44