def test_edges_to_graph_gexf(self):
graph = nx.read_gexf(fixtures_path('graph.gexf'))
with open(fixtures_path('graph.json'), 'r') as json_graph:
edges = json.load(json_graph)
out = nx.read_gexf(io.StringIO(utils.edges_to_graph(edges,
fmt='gexf')))
assert nodeset(out) == nodeset(graph)
assert edgeset(out) == edgeset(graph)
评论列表
文章目录