# neighborhoodComplements -- complements the neighborhood for each vertex, individually

## Synopsis

• Usage:
L = neighborhoodComplements S
L = neighborhoodComplements G
• Inputs:
• S, , a graph encoded in either Sparse6 or Graph6 format
• G,
• Outputs:
• L, a list, a list of graphs, in the same format as the input, modified as described below

## Description

The method creates a list of graphs, one for each vertex of the original graph G. The graph associated to a vertex v of G has its neighborhood complemented.

The method does not remove isomorphs.
 `i1 : R = QQ[a..e];` ```i2 : neighborhoodComplements graph {a*b, a*c, b*c, c*d, d*e} o2 = {Graph{edges => {{a, b}, {a, c}, {b, c}, {b, d}, {b, e}, {c, e}, {d, ring => R vertices => {a, b, c, d, e} ------------------------------------------------------------------------ e}}}, Graph{edges => {{a, b}, {a, c}, {b, c}, {a, d}, {a, e}, {c, e}, ring => R vertices => {a, b, c, d, e} ------------------------------------------------------------------------ {d, e}}}, Graph{edges => {{a, b}, {a, c}, {b, c}, {c, d}, {a, e}, {b, ring => R vertices => {a, b, c, d, e} ------------------------------------------------------------------------ e}}}, Graph{edges => {{a, b}, {c, d}, {a, e}, {b, e}, {d, e}}}, ring => R vertices => {a, b, c, d, e} ------------------------------------------------------------------------ Graph{edges => {{a, b}, {a, c}, {b, c}, {a, d}, {b, d}, {d, e}}}} ring => R vertices => {a, b, c, d, e} o2 : List```