igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] how to select eid on the basis of an edge attribute


From: Simone Gabbriellini
Subject: Re: [igraph] how to select eid on the basis of an edge attribute
Date: Thu, 22 Jan 2009 17:36:38 +0100

Hi Tamas,

Could this be the a good strategy?

1) find all the neighbors of v1:

2) for each neighbor in the list:

3) check if they are blue-linked with v1 (using get_eids()):

4) if yes: do this

5) else: do that

regards,
Simone

2009/1/21 Tamas Nepusz <address@hidden>:
>> I suppose a similar workaround could be made also for finding the
>> "blue" neighbors of vertex 1...
> Yup. Use g.adjacent(v1) to find the IDs of edges adjacent to v1, use
> g.neighbors(v1) to find the IDs of vertices adjacent to v1.
>
> --
> T.
>
>
>
>
> _______________________________________________
> 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]