Adds a vertex to the graph.
a new graph instance with the vertex added
the value of the vertex to add