why not use? 
```scala
graph.subgraph(epred = epred)
```