
Last chance! 50% off unlimited learning
Sale ends in
Remove multiple and loop edges from a graph
simplify(graph)
Another graph, with the multiple and loop edges removed.
Input graph.
Other multigraphs:
is_loopy()
,
is_multigraph()
,
is_simple()
,
remove_loops()
,
remove_multiple()
G <- graph(list(A = c("A", "B", "B"), B = c("A", "C"), C = "A"))
is_simple(G)
G2 <- simplify(G)
is_simple(G2)
Run the code above in your browser using DataLab