The function subgraph can create a subgraph induced by a subset of edges but there is no function to create a subgraph induced by a subset of vertices