remove_multiple | R Documentation |
Remove multiple edges from a graph
remove_multiple(graph)
graph |
Input graph. |
Graph, without the multiple edges. (More precisely, from each set of multiple edges, only one, the first one, is kept.)
Other multigraphs:
is_loopy()
,
is_multigraph()
,
is_simple()
,
remove_loops()
,
simplify()
G <- graph(list(A = c("A", "B", "B"), B = c("A", "C"), C = "A"))
is_multigraph(G)
is_multigraph(remove_multiple(G))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.