We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8a3d04 commit 6915ff6Copy full SHA for 6915ff6
src/igraph/__init__.py
@@ -2021,7 +2021,7 @@ def from_graph_tool(cls, g):
2021
graph = cls(n=vcount, directed=g.is_directed(), graph_attrs=gattr)
2022
2023
# Node attributes
2024
- for key, val in list(g.vertex_properties.items()):
+ for key, val in g.vertex_properties.items():
2025
prop = val.get_array()
2026
for i in range(vcount):
2027
graph.vs[i][key] = prop[i]
@@ -2035,7 +2035,7 @@ def from_graph_tool(cls, g):
2035
eattr = {name: [] for name in eattr_names}
2036
for e in g.edges():
2037
edges.append((int(e.source()), int(e.target())))
2038
- for name, attr_map in list(g.edge_properties.items()):
+ for name, attr_map in g.edge_properties.items():
2039
eattr[name].append(attr_map[e])
2040
2041
graph.add_edges(edges, eattr)
0 commit comments