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 . If the degree of vertex is greater than zero, then is in . Algorithm 21 formalizes this observation.
|is in graph|
|is not in graph|
In a similar vein, the minimum_degree operation is realized by the list operation first. By definition, first() gets the minimum degree vertex. Recall that the minimum degree vertex list orders the vertices by ascending degree.