igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] get adjacency matrix


From: Simone Gabbriellini
Subject: Re: [igraph] get adjacency matrix
Date: Thu, 15 Jan 2009 10:39:23 +0100

many thanks Tamas,

it works and now I can pass the matrix to R via rpy2

regards,
Simone

2009/1/15 Tamas Nepusz <address@hidden>:
>> 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
>
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>




reply via email to

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