Possible regression: add_edge_list() no longer accepts vertex objects?
With graph-tool-2.46 tested in Guix and Debian.
Example:
import graph_tool.all as gt
g = gt.Graph()
v0 = g.add_vertex()
v1 = g.add_vertex()
g.add_edge_list([[v0, v1]])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[41], line 1
----> 1 g.add_edge_list([[v0, v1]])
File ~/.guix-profile/lib/python3.9/site-packages/graph_tool/__init__.py:2603, in Graph.add_edge_list(self, edge_list, hashed, hash_type, eprops)
2601 libcore.add_edge_list(self.__graph, edge_list, eprops)
2602 else:
-> 2603 libcore.add_edge_list_iter(self.__graph, edge_list, eprops)
2604 else:
2605 if isinstance(edge_list, numpy.ndarray):
TypeError: No registered converter was able to produce a C++ rvalue of type double from this Python object of type Vertex
Workaround:
g.add_edge_list([[int(v0), int(v1)]])