def initialize_from_files(self, file_list):
""" initialize from a list of graphml files. Each graphml should
contain an "email" field per node that identifies the owner and
a scan_id, scan_time and network global field to identify the scan
and network """
for file in file_list:
try:
g = nx.read_graphml(file)
except:
raise
self.scanTree[g.graph["network"]]["ETX"].append(
[g.graph["scan_id"], g.graph["scan_time"]])
self.routeData[g.graph["network"]][g.graph["scan_id"]]["Graph"] = g
owner_graph_metrics.py 文件源码
python
阅读 40
收藏 0
点赞 0
评论 0
评论列表
文章目录