Helper DFS function used in the transposed graph to collect SCCs.
(v int, visited []bool, scc *[]int)
| 81 | |
| 82 | // Helper DFS function used in the transposed graph to collect SCCs. |
| 83 | func (g *Graph) dfs(v int, visited []bool, scc *[]int) { |
| 84 | visited[v] = true |
| 85 | *scc = append(*scc, v) |
| 86 | |
| 87 | for neighbor := range g.edges[v] { |
| 88 | if !visited[neighbor] { |
| 89 | g.dfs(neighbor, visited, scc) |
| 90 | } |
| 91 | } |
| 92 | } |
nothing calls this directly
no outgoing calls
no test coverage detected