operator - method
Implementation
GraphSnapshot<V> operator -(Object other) {
if (other case Vertex<V> vertex) {
return removeVertex(vertex);
} else if (other case Graph<V> graph) {
return diffGraph(graph);
} else {
throw Exception();
}
}