<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def filtered(self, step_names):
 """Returns a "filtered" version of this graph."""

        return Graph(steps=self.steps, dag=self.dag.filter(step_names))