- Changed filterVertices and filterEdges to use graph.subgraph (tests still pass).