convert to using filter states to reduce need for new instances of the filters with each new edge traversal in a graph.