set or list of edges
The Subgraph command returns the subgraph formed by a specified set (or list) of edges.
To induce a subgraph using a set of vertices, use the InducedSubgraph command.
K5 ≔ CompleteGraph⁡5
K5≔Graph 1: an undirected unweighted graph with 5 vertices and 10 edge(s)
E ≔ 1,2,2,3,3,4,4,1
H ≔ Subgraph⁡K5,E
H≔Graph 2: an undirected unweighted graph with 4 vertices and 4 edge(s)
Download Help Document
What kind of issue would you like to report? (Optional)