graphinius
graphinius copied to clipboard
Negative cycle detection per component
For a multi-component graph, write a method such that:
- given the graph and a specific DFS result
- return a corresponding array containing entries [component_start_node_id: string, has_negative_cycle: boolean]
- test with specific overall start nodes