remove_multiple {simplegraph} | R Documentation |
Remove multiple edges from a graph
Description
Remove multiple edges from a graph
Usage
remove_multiple(graph)
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
G <- graph(list(A = c("A", "B", "B"), B = c("A", "C"), C = "A"))
is_multigraph(G)
is_multigraph(remove_multiple(G))
[Package simplegraph version 1.0.1 Index]