addVertex method
Implementation
GraphSnapshot<V> addVertex(Vertex<V> vertex) {
return GraphSnapshot<V>(vertexSnapshots: {
...vertices.map(VertexSnapshot.mapAsUnmodified),
vertex.id: VertexSnapshot<V>(vertex, state: SnapshotState.added)
});
}