Skip to content

Conversation

@jahnaviT2003
Copy link

  1. Disjoint set: This class provides the find and union operations used to detect cycles.
  2. Kruskal's Algorithm: First, we convert the adjacency list to a list of edges, we then sort the edges by weight, Using the disjoint set, we process the edges and add them to the MST if they do not form a cycle
  3. Input Graph: The input graph() function accepts the user input to define the adjacency list graph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant