code: def configure(self, graph, spanning_tree):
          
          self.graph = graph
          self.spanning_tree = spanning_tree
docs: Configure the filter.
          
          @type  graph: graph
          @param graph: Graph.
          
          @type  spanning_tree: dictionary
          @param spanning_tree: Spanning tree.