This is a method that takes in any graph and outputs this graph minus one specified vertex. This will also remove any edge that contained this vertex as one of its entries.
i1 : G = cycleGraph 4; |
i2 : G' = deleteVertex(G,1); |
The object deleteVertex is a method function.