tree.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:CAAPR 作者: Stargrazer82301 项目源码 文件源码
def writeDotRaw(self, filename):

        """ Writes the raw dot file (text-file used by dot/neato) with the
        representation of the individual
        :param filename: the output file, ex: individual.dot
        """

        if not HAVE_PYDOT:
            utils.raiseException("You must install Pydot to use this feature !")

        graph = pydot.Dot(graph_type="digraph")
        self.writeDotGraph(graph)
        graph.write(filename, prog='dot', format="raw")

    # -----------------------------------------------------------------
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号