Nodes with in and out degree of one will be removed.

simplify_graph(graph)

Arguments

graph

an igraph object

Examples

simple = simplify_graph(example_igraph)
plot_graph(example_igraph)

plot_graph(simple)