test_utils.py 文件源码

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

项目:histonets-cv 作者: sul-cidr 项目源码 文件源码
def test_edges_to_graph(self):
        graph = nx.read_graphml(fixtures_path('graph.graphml'))
        with open(fixtures_path('graph.json'), 'r') as json_graph:
            edges = json.load(json_graph)
            out = nx.parse_graphml(utils.edges_to_graph(edges))
        assert nodeset(out) == nodeset(graph)
        assert edgeset(out) == edgeset(graph)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号