filterOnVertices and filterOnEdges implemented and tested