H = rmnode(G,nodeIDs) removes
the nodes specified by nodeIDs from graph G.
Any edges incident upon the nodes in nodeIDs are
also removed. rmnode refreshes the numbering of
the nodes in H.
Input graph, specified as either a graph or digraph object.
Use the graph function to create
an undirected graph or the digraph function
to create a directed graph.