Let G := ( V , E ) {\displaystyle G:=(V,E)} be a finite undirected graph. The vertex space V ( G ) {\displaystyle {\mathcal {V}}(G)} of G is the vector space over the finite field of two elements Z / 2 Z := { 0 , 1 } {\displaystyle \mathbb {Z} /2\mathbb {Z} :=\lbrace 0,1\rbrace } of all functions V → Z / 2 Z {\displaystyle V\rightarrow \mathbb {Z} /2\mathbb {Z} } . Every element of V ( G ) {\displaystyle {\mathcal {V}}(G)} naturally corresponds the subset of V which assigns a 1 to its vertices. Also every subset of V is uniquely represented in V ( G ) {\displaystyle {\mathcal {V}}(G)} by its characteristic function. The edge space E ( G ) {\displaystyle {\mathcal {E}}(G)} is the Z / 2 Z {\displaystyle \mathbb {Z} /2\mathbb {Z} } -vector space freely generated by the edge set E. The dimension of the vertex space is thus the number of vertices of the graph, while the dimension of the edge space is the number of edges.
These definitions can be made more explicit. For example, we can describe the edge space as follows:
The singleton subsets of E form a basis for E ( G ) {\displaystyle {\mathcal {E}}(G)} .
One can also think of V ( G ) {\displaystyle {\mathcal {V}}(G)} as the power set of V made into a vector space with similar vector addition and scalar multiplication as defined for E ( G ) {\displaystyle {\mathcal {E}}(G)} .
The incidence matrix H {\displaystyle H} for a graph G {\displaystyle G} defines one possible linear transformation
between the edge space and the vertex space of G {\displaystyle G} . The incidence matrix of G {\displaystyle G} , as a linear transformation, maps each edge to its two incident vertices. Let v u {\displaystyle vu} be the edge between v {\displaystyle v} and u {\displaystyle u} then
The cycle space and the cut space are subspaces of the edge space.