Macaulay2 » Documentation
Packages » Graphs :: deleteVertex
next | previous | forward | backward | up | index | toc

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

Synopsis

Description

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.