Vanshikapandey30 / Hacktoberfest2024

It's time to contribute to HacktoberFest 2024 :)
https://hacktoberfest.com
143 stars 752 forks source link

Bipartite graph ( an interface to check if a graph can be a Bipartite ) #74

Closed Hasith-Addanki closed 2 weeks ago

Hasith-Addanki commented 1 month ago

Hi Vanshika, in this Html-Css-Js project, I tried to implement an interface which allows users to create a graph of their choice and check if the graph can be a Bipartite Graph or not. Limitations: I limited the users to create a graph with atmost 10 vertices, the reason behind this is I could not come up with a better idea to position the vertices and the edges, I thought to position them on a big circle at equi-distance, which makes it easier to calculate the positions. So having more vertices it occupies more space.

Kindly review this PR, I would like to take any suggestions, especially in CSS and JS, I would try to improve.

Thank you.

Below are the snapshots:

On Opening the page

{B0EC41E4-7C5A-4F1C-A390-89100D34E3EE}

If the Graph forms a Bipartite

{A47CFA69-C718-45E4-A6A5-B2E499FDBD33}

If a Graph couldn't form a Bipartite

{5D1CC3BB-7530-40C1-9314-772BCBF4EAE1}