[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Extracting sub-graph
From: |
Håvard Wahl Kongsgård |
Subject: |
Re: [igraph] Extracting sub-graph |
Date: |
Wed, 12 Oct 2011 15:40:45 +0200 |
>> aa = i.decompose(mode=WEAK)
> Have you imported the "WEAK" constant from the igraph module before? (from
> igraph import WEAK)
Nope, do I need to do that?
Another issue, I use Read_Ncol() to import a large graph.
For vertex attributes is there a similar function useful on large
graph? Currently I simply loop through a list of vertices, and add the
attributes that way, but it's slow.
-Håvard
On Wed, Oct 12, 2011 at 3:29 PM, Tamás Nepusz <address@hidden> wrote:
>> i.decompose(mode=1) works (assuming that, 1 = weak and 2 = strong)
> The assumption is correct.
>
>> aa = i.decompose(mode=WEAK)
> Have you imported the "WEAK" constant from the igraph module before? (from
> igraph import WEAK)
>
> --
> T.
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
Re: [igraph] Extracting sub-graph, Tamás Nepusz, 2011/10/12