igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] get adjacency matrix


From: Tamas Nepusz
Subject: Re: [igraph] get adjacency matrix
Date: Thu, 15 Jan 2009 09:25:23 +0000

is it possible to convert the get_adjacency matrix to a numpy.array?
numpy.array(list(g.get_adjacency()))

The reason is that g.get_adjacency() is a Matrix object and although it behaves as a list when being iterated over, numpy does not recognise it for some reason and creates an array whose only element is the whole matrix.

--
Tamas






reply via email to

[Prev in Thread] Current Thread [Next in Thread]