A two-graph is equivalent to a switching class of graphs and also to a (signed) switching class of
signed complete graphs.
Switching a set of vertices in a (simple) graph means reversing the adjacencies of each pair of vertices, one in the set and the other not in the set: thus the edge set is changed so that an adjacent pair becomes nonadjacent and a nonadjacent pair becomes adjacent. The edges whose endpoints are both in the set, or both not in the set, are not changed. Graphs are
switching equivalent if one can be obtained from the other by switching. An
equivalence class of graphs under switching is called a
switching class. Switching was introduced by and developed by Seidel; it has been called
graph switching or
Seidel switching, partly to distinguish it from switching of
signed graphs. In the standard construction of a two-graph from a simple graph given above, two graphs will yield the same two-graph if and only if they are equivalent under switching, that is, they are in the same switching class. Let Γ be a two-graph on the set
X. For any element
x of
X, define a graph with vertex set
X having vertices
y and
z adjacent if and only if {
x,
y,
z} is in Γ. In this graph,
x will be an isolated vertex. This construction is reversible; given a simple graph
G, adjoin a new element
x to the set of vertices of
G, retaining the same edge set, and apply the standard construction above. This two-graph is called the
extension of
G by
x in
design theoretic language. In a given switching class of graphs of a regular two-graph, let Γ
x be the unique graph having
x as an isolated vertex (this always exists, just take any graph in the class and switch the open neighborhood of
x) without the vertex
x. That is, the two-graph is the extension of Γ
x by
x. In the first example above of a regular two-graph, Γ
x is a 5-cycle for any choice of
x. To a graph
G there corresponds a signed complete graph Σ on the same vertex set, whose edges are signed negative if in
G and positive if not in
G. Conversely,
G is the subgraph of Σ that consists of all vertices and all negative edges. The two-graph of
G can also be defined as the set of triples of vertices that support a negative triangle (a triangle with an odd number of negative edges) in Σ. Two signed complete graphs yield the same two-graph if and only if they are equivalent under switching. Switching of
G and of Σ are related: switching the same vertices in both yields a graph
H and its corresponding signed complete graph. ==Adjacency matrix==