It would be great if u could make it to accept graph in other formats too like leetcode where input is given like this [[2,4],[1,3],[2,1],[4,3]] or [[2,4,1],[1,3,1],[2,1,1],[4,3,1]]. → Reply nyavim 8 months