File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2021,7 +2021,7 @@ def from_graph_tool(cls, g):
2021
2021
graph = cls (n = vcount , directed = g .is_directed (), graph_attrs = gattr )
2022
2022
2023
2023
# Node attributes
2024
- for key , val in list ( g .vertex_properties .items () ):
2024
+ for key , val in g .vertex_properties .items ():
2025
2025
prop = val .get_array ()
2026
2026
for i in range (vcount ):
2027
2027
graph .vs [i ][key ] = prop [i ]
@@ -2035,7 +2035,7 @@ def from_graph_tool(cls, g):
2035
2035
eattr = {name : [] for name in eattr_names }
2036
2036
for e in g .edges ():
2037
2037
edges .append ((int (e .source ()), int (e .target ())))
2038
- for name , attr_map in list ( g .edge_properties .items () ):
2038
+ for name , attr_map in g .edge_properties .items ():
2039
2039
eattr [name ].append (attr_map [e ])
2040
2040
2041
2041
graph .add_edges (edges , eattr )
You can’t perform that action at this time.
0 commit comments