graphviz_lib.py 文件源码

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

项目:scion-web 作者: netsec-ethz 项目源码 文件源码
def add_nodes(self, to_draw_list, graph, core, ip_addresses):
        """
        Adds nodes of ASes to a graph
        :param: self, array to_draw_list: an array of ASes,
                graphviz graph: Graph to which we add the nodes,
                bool core: indicates if we add core nodes
                bool ip_addresses: indicates if we have edge labels
        """
        for AS in to_draw_list:
            if ip_addresses:
                self.draw_node_with_attributes(AS, core, graph)
            else:
                self.draw_node_without_attributes(AS, core, graph)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号