# complementer

From igraph v1.2.4.2
by Gabor Csardi

##### Complementer of a graph

A complementer graph contains all edges that were not present in the input graph.

- Keywords
- graphs

##### Usage

`complementer(graph, loops = FALSE)`

##### Arguments

- graph
The input graph, can be directed or undirected.

- loops
Logical constant, whether to generate loop edges.

##### Details

`complementer`

creates the complementer of a graph. Only edges
which are *not* present in the original graph will be included in the
new graph.

`complementer`

keeps graph and vertex attriubutes, edge
attributes are lost.

##### Value

A new graph object.

##### Examples

```
# NOT RUN {
## Complementer of a ring
g <- make_ring(10)
complementer(g)
## A graph and its complementer give together the full graph
g <- make_ring(10)
gc <- complementer(g)
gu <- union(g, gc)
gu
graph.isomorphic(gu, make_full_graph(vcount(g)))
# }
```

*Documentation reproduced from package igraph, version 1.2.4.2, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.