Graph-Visualization / graph-api

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

Implement the Special Graphs and basic algorithms for them #9

Open yashrsharma44 opened 3 years ago

yashrsharma44 commented 3 years ago

Implement all types of traversal for -

Implement an algorithm to detect if a graph is -

130sayan commented 3 years ago

@yashrsharma44 @Biswajitghosh98 Can i work on the traversal in Trees and the Eulerian part?

anishsofat commented 3 years ago

@yashrsharma44 @Biswajitghosh98 Can I work on the algorithms to implement Bipartite and Directly Acyclic Graph?

Biswajitghosh98 commented 3 years ago

@130sayan @anishsofat Assigned. All the best !

130sayan commented 3 years ago

@Biswajitghosh98 bfs and dfs have already been done for graphs. Should I do separately for Trees?

Biswajitghosh98 commented 3 years ago

@130sayan look up Morris Traversal and implement it on Binary Trees (directed)

yashrsharma44 commented 3 years ago

@130sayan you need to add inorder/preorder/postorder/levelorder for trees. You can use the existing dfs/bfs for your reference

130sayan commented 3 years ago

@Biswajitghosh98 I have to check Eulerian for directed or undirected?

Biswajitghosh98 commented 3 years ago

@130sayan An Eulerian circuit can be made on both directed and undirected graphs. Considering the graph directed would cover both the cases.

anishsofat commented 3 years ago

@Biswajitghosh98 I have submitted a pull request for Bipartite Graph. In "Directly Acyclic Graph", is directly same as directed?

Biswajitghosh98 commented 3 years ago

@anishsofat yes. Let me have a look

130sayan commented 3 years ago

@yashrsharma44 @Biswajitghosh98 is it necessary to use morris traversal for various traversals or can I use Stack or recursion?

yashrsharma44 commented 3 years ago

I would suggest you to implement a Morris traversal separately, and for tree traversals, use stack.

Biswajitghosh98 commented 3 years ago

@130sayan Morris Traversal is special in a sense that it takes O(1) space while stack or recursion call stack takes up O(logn)

Biswajitghosh98 commented 3 years ago

@yashrsharma44 I think using Morris for inorder and pre-order would be nice instead of a separate implementation. What do you think ?

yashrsharma44 commented 3 years ago

Let's move ahead with @Biswajitghosh98 idea

130sayan commented 3 years ago

Ok. Thank you