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):
20212021 graph = cls (n = vcount , directed = g .is_directed (), graph_attrs = gattr )
20222022
20232023 # Node attributes
2024- for key , val in list ( g .vertex_properties .items () ):
2024+ for key , val in g .vertex_properties .items ():
20252025 prop = val .get_array ()
20262026 for i in range (vcount ):
20272027 graph .vs [i ][key ] = prop [i ]
@@ -2035,7 +2035,7 @@ def from_graph_tool(cls, g):
20352035 eattr = {name : [] for name in eattr_names }
20362036 for e in g .edges ():
20372037 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 ():
20392039 eattr [name ].append (attr_map [e ])
20402040
20412041 graph .add_edges (edges , eattr )
You can’t perform that action at this time.
0 commit comments