def as_dot(self) -> str:
        """ Return as a string the dot version of the graph. """
        return nx.drawing.nx_pydot.to_pydot(self._graph).to_string()
Return as a string the dot version of the graph.