📅  最后修改于: 2022-03-11 14:47:02.026000             🧑  作者: Mango
#create graph
g = igraph.Graph([[1,2], [2,3], [0,3]])
#Returns the adjacency matrix of a graph.
g.get_adjacency()
#Returns the adjacency matrix of a graph as a SciPy CSR matrix.
g.get_adjacency_sparse()