# simplify

From igraph v0.1.2
by Gabor Csardi

##### Remove loop and/or multiple edges from a graph

`simplify`

removes the multiple and/or loop edges from
a graph.

- Keywords
- graphs

##### Usage

`simplify(graph, remove.multiple = TRUE, remove.loops = TRUE)`

##### Arguments

- graph
- The graph to work on.
- remove.loops
- Logical, whether the loop edges are to be removed.
- remove.multiple
- Logical, whether the multiple edges are to be removed.

##### Details

If both `remove.loops`

and `remove.multiple`

are TRUE
the function returns a simple graph.

##### Value

- A new graph object with the edges deleted.

##### See Also

##### Examples

```
g <- graph( c(1,2,1,2,3,3) )
simplify(g, remove.loops=FALSE)
simplify(g, remove.multiple=FALSE)
```

*Documentation reproduced from package igraph, version 0.1.2, License: GPL version 2 or later (June, 1991)*

### Community examples

Looks like there are no examples yet.