igraph-help
[Top][All Lists]
Advanced

[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
>



reply via email to

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