deleteVertex -- a method for deleting the vertex of a graph
Synopsis
Usage:
H = deleteVertex(G, v)
Inputs:
G, an object of class Graph (missing documentation)
v, a thing, v should be a member of the vertex set of G
Outputs:
H, an object of class Graph (missing documentation), The graph with the vertex v and any edges touching it
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
inducedSubgraph -- A method for finding the induced subgraph of any Graph or Digraph
deleteVertices -- Deletes specified vertices from a digraph or graph
deleteEdges -- Deletes a list of edges from a graph