Graph

图的表示:邻接表或者邻接矩阵

邻接表:ArrayList[] adj = new ArrayList[n];

常用BFS,UnionFind方式解决

度degrees,一个node的度为出入的和,入为正则出为负

results matching ""

    No results matching ""