simplify_graph: Remove redundant edges

simplify_graphR Documentation

Remove redundant edges

Description

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

Usage

simplify_graph(graph)

Arguments

graph

an igraph object

Examples

simple = simplify_graph(example_igraph)
plot_graph(example_igraph)
plot_graph(simple)

uqrmaie1/admixtools documentation built on Nov. 3, 2024, 12:56 a.m.