h = inducedGraph(G, L)
This function returns the induced subgraph of a graph on a specified set of vertices. This function enables the user to create subgraphs of the original graph. inducedGraph accepts a Graph as input and returns a Graph as well. Use inducedHyperGraph for a HyperGraph instead.
The default option is for the ring of the induced subgraph to contain only variables in L. Then the current ring must be changed before working with the induced subgraph. We use this setup to avoid having a lot of isolated vertices in the induced graph. However, one can set the option OriginalRing to true if one wants to give the induced graph the same ring as the original graph.








Equivalently, one can use changeRing (and graph) to move the induced graph back into the original ring.




The object inducedGraph is a method function with options.