| feedback_vertex_set | R Documentation |
A feedback vertex set of a graph is a subset of vertices whose removal breaks all cycles in the graph. Finding a minimum feedback vertex set is an NP-complete problem, both on directed and undirected graphs.
feedback_vertex_set(graph, weights = NULL, algo = c("exact_ip"))
graph |
The input graph |
weights |
Potential vertex weights. If the graph has a vertex
attribute called ‘ |
algo |
Specifies the algorithm to use. Currently, “ |
A vertex sequence (by default, but see the return.vs.es option
of igraph_options()) containing the feedback vertex set.
Other structural.properties:
bfs(),
component_distribution(),
connect(),
constraint(),
coreness(),
degree(),
dfs(),
distance_table(),
edge_density(),
feedback_arc_set(),
girth(),
is_acyclic(),
is_dag(),
is_matching(),
k_shortest_paths(),
knn(),
reciprocity(),
subcomponent(),
subgraph(),
topo_sort(),
transitivity(),
unfold_tree(),
which_multiple(),
which_mutual()
Graph cycles
feedback_arc_set(),
find_cycle(),
girth(),
has_eulerian_path(),
is_acyclic(),
is_dag(),
simple_cycles()
g <- make_lattice(c(3,3))
feedback_vertex_set(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.