图的反馈弧集是边的子集,移除这些边会破坏图中的所有环。
用法
feedback_arc_set(graph, weights = NULL, algo = c("approx_eades", "exact_ip"))
值
一个边序列(默认情况,但请参见igraph_options()
的return.vs.es
选项),其中包含反馈弧集。
参考文献
Peter Eades, Xuemin Lin and W.F.Smyth: A fast and effective heuristic for the feedback arc set problem. Information Processing Letters 47:6, pp. 319-323, 1993
参见
其他 structural.properties: bfs()
, component_distribution()
, connect()
, constraint()
, coreness()
, degree()
, dfs()
, distance_table()
, edge_density()
, feedback_vertex_set()
, girth()
, is_acyclic()
, is_dag()
, is_matching()
, k_shortest_paths()
, knn()
, reciprocity()
, subcomponent()
, subgraph()
, topo_sort()
, transitivity()
, unfold_tree()
, which_multiple()
, which_mutual()
图环 feedback_vertex_set()
, find_cycle()
, girth()
, has_eulerian_path()
, is_acyclic()
, is_dag()
, simple_cycles()
示例
g <- sample_gnm(20, 40, directed = TRUE)
feedback_arc_set(g)
#> + 5/40 edges from ce9f241:
#> [1] 9-> 8 15-> 9 15->10 16-> 3 16->12
feedback_arc_set(g, algo = "approx_eades")
#> + 5/40 edges from ce9f241:
#> [1] 9-> 8 15-> 9 15->10 16-> 3 16->12