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