code: def add_spanning_tree(self, st):
          
          self.add_nodes(list(st.keys()))
          for each in st:
              if (st[each] is not None):
                  self.add_edge((st[each], each))
docs: Add a spanning tree to the graph.
          
          @type  st: dictionary
          @param st: Spanning tree.