标签: python typeerror igraph
我想知道这段代码的用处是什么:
import igraph as ig test = ig.Graph() test.add_vertices(0) test.add_vertices(1) test.add_vertices(2) test.add_edges((1,2))`
当我运行它时,我收到以下错误:
TypeError: iterable must return pairs of integers or strings