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

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

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:

  • deleteVertex(Graph,Thing)
  • deleteVertex(Digraph,Thing) (missing documentation)

For the programmer

The object deleteVertex is a method function.


The source of this document is in Graphs.m2:5071:0.