有向圖找環的python實現

算法參考:http://blog.csdn.net/xw13106209/article/details/6538634python def findcircle(G): """ color = 0 hasn't been visited color = -1 be visited once color = 1 has been dfs, all children
相關文章
相關標籤/搜索