docs: def from_edges(edges):
          """ Return DirectedGraph created from edges
          :param edges:
          :return: DirectedGraph
          """
          dag = DirectedGraph()
          for _u, _v in edges:
              dag.add_edge(_u, _v)
          return dag