Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

igraph adjacency matrix python

#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()
 
PREVIOUS NEXT
Tagged: #igraph #adjacency #matrix #python
ADD COMMENT
Topic
Name
1+6 =