remove_loops: Remove loop edges from a graph

Description Usage Arguments Value See Also Examples

View source: R/multigraphs.R

Description

Remove loop edges from a graph

Usage

1

Arguments

graph

Input graph

Value

Graph, with loop edges removed.

See Also

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

Examples

1
2
3
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 May 20, 2017, 5:42 a.m.

Search within the simplegraph package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.