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)
评论列表
文章目录