code: def get_inner_edges(self):
          
          inner_edges = [e for e in self._tree.preorder_edge_iter() if e.is_internal()
                         and e.head_node and e.tail_node]
          return inner_edges
docs: Returns a list of the internal edges of the tree.