remove_multiple: Remove multiple edges from a graph

Description Usage Arguments Value See Also Examples

View source: R/multigraphs.R

Description

Remove multiple edges from a graph

Usage

1

Arguments

graph

Input graph.

Value

Graph, without the multiple edges. (More precisely, from each set of multiple edges, only one, the first one, is kept.)

See Also

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

Examples

1
2
3
G <- graph(list(A = c("A", "B", "B"), B = c("A", "C"), C = "A"))
is_multigraph(G)
is_multigraph(remove_multiple(G))

simplegraph documentation built on May 30, 2017, 8:05 a.m.