8.5 Querying the Reduced Graph State

A couple of reduced graph state operations are also specified in Section 8.1. Their implementations tend to fall out trivially from the data structures used for minimum degree vertex tracking.

The in_graph operator is realized by the mapping λ \lambda . If the degree of vertex v v is greater than zero, then v v is in V G V^{{\prime}}(G^{{\prime}}) . Algorithm 21 formalizes this observation.

Algorithm 21: Determine if a Vertex is in the Reduced Graph
in_graph( v v )
   if evaluate( λ , v \lambda,v ) > 0 >0
       v v is in graph
   else
       v v is not in graph

In a similar vein, the minimum_degree operation is realized by the list operation first. By definition, first( L L ) gets the minimum degree vertex. Recall that the minimum degree vertex list L L orders the vertices by ascending degree.