simplify | R Documentation |

Remove multiple and loop edges from a graph

```
simplify(graph)
```

`graph` |
Input graph. |

Another graph, with the multiple and loop edges removed.

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)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.