GraphTheory
SeidelSwitch
construct Seidel switch graph from graph
Calling Sequence
Parameters
Options
Description
Examples
SeidelSwitch(G, S, opts)
G
-
undirected and unweighted graph
S
list of vertices of the graph
opts
one or more options as specified below
inplace=truefalse
Specifies whether the changes are applied to the original graph or to a copy. The default is true, meaning the original graph is changed.
The SeidelSwitch command transforms the input graph to a new graph in such a way that, for each specified vertex, its neighbors become its non-neighbors and vice versa.
By default, the original graph is changed and the switching happens in place. By setting inplace=false the original graph remains unchanged.
Vertices 1 and 2 remain neighbors of each other
See Also
Neighbors
Download Help Document