Now the UnidrectedGraph can create a subgraph