Create a class that supports some collection graph queries of interest. For example: support search for vertices connected to a given vertex.
The class constructor takes a graph (and in this case) the given vertex.
The constructor processes the graph to initialize members that allow supports its allowed queries.