igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] converting numpy adjacency matrices into igraph graph objec


From: Tamas Nepusz
Subject: Re: [igraph] converting numpy adjacency matrices into igraph graph objects
Date: Wed, 25 Nov 2009 15:56:44 +0000
User-agent: Mutt/1.5.20 (2009-06-14)

One more thing: if your adjacency matrix contains edge weights that you
want to preserve, you should use Graph.Weighted_Adjacency instead of
Graph.Adjacency.

The graph will be directed by default; if you need an undirected graph
and your matrix is symmetric, you should add mode=igraph.ADJ_MAX to the
keyword argument list.

-- 
Tamas




reply via email to

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