owner_graph_metrics.py 文件源码

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

项目:community-networks-monitoring-tools 作者: netCommonsEU 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号