---
title: "Discussion on \"Topological Sort Algorithm\" | Hashnode"
description: "Discussion on \"Topological Sort Algorithm\". Topological sort algorithm using DFS\n\nimport java.util.*;\n\npublic class Main {\n\n  public static class Graph {\n    int v;\n    int e;\n\n    List<List<Integer>> arrList;\n\n    public Graph(int v, int e) {\n      this.v = v;\n      this.e = e;\n\n      arrList..."
url: "https://hashnode.com/posts/topological-sort-algorithm/66fcea12a383b6595888fb4f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Topological Sort Algorithm](https://akadurga.hashnode.dev/topological-sort-algorithm?utm_source=hashnode&utm_medium=feed)

Topological sort algorithm using DFS import java.util.\*; public class Main { public static class Graph { int v; int e; List<List<Integer>> arrList; public Graph(int v, int e) { this.v = v; this.e = e; arrList...

Oct 2, 2024 · 1 min read · akadurga.hashnode.dev  
Read the article

-   [#topological-sort](https://hashnode.com/tag/topological-sort)
-   [#sorting](https://hashnode.com/tag/sorting)
-   [#graph-algorithms](https://hashnode.com/tag/graph-algorithms)
-   [#dfs](https://hashnode.com/tag/dfs)

## Written by

[Teja Illa](https://hashnode.com/@akaDurga)

@akaDurga

  
[View profile](https://hashnode.com/@akaDurga)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
