在图上执行广度优先搜索,并通过复制多次找到的顶点将其转换为树或森林。
用法
unfold_tree(graph, mode = c("all", "out", "in", "total"), roots)
参见
其他 structural.properties: bfs()
, component_distribution()
, connect()
, constraint()
, coreness()
, degree()
, dfs()
, distance_table()
, edge_density()
, feedback_arc_set()
, feedback_vertex_set()
, girth()
, is_acyclic()
, is_dag()
, is_matching()
, k_shortest_paths()
, knn()
, reciprocity()
, subcomponent()
, subgraph()
, topo_sort()
, transitivity()
, which_multiple()
, which_mutual()
作者
Gabor Csardi csardi.gabor@gmail.com