remove_loops: Remove loop edges from a graph

View source: R/multigraphs.R

remove_loopsR Documentation

Remove loop edges from a graph

Description

Remove loop edges from a graph

Usage

remove_loops(graph)

Arguments

graph

Input graph

Value

Graph, with loop edges removed.

See Also

Other multigraphs: is_loopy(), is_multigraph(), is_simple(), remove_multiple(), simplify()

Examples

G <- graph(list(A = c("A", "B", "B"), B = c("A", "C"), C = "A"))
is_loopy(G)
is_loopy(remove_loops(G))

simplegraph documentation built on Aug. 31, 2023, 9:07 a.m.