next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Graphs :: deleteVertex

deleteVertex -- a method for deleting the vertex of a graph



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);

See also

Ways to use deleteVertex :

For the programmer

The object deleteVertex is a method function.