[Top][All Lists]

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

Re: [igraph] Selecting edges in C

From: Gábor Csárdi
Subject: Re: [igraph] Selecting edges in C
Date: Thu, 18 Feb 2010 16:35:47 +0100


perhaps the simplest is to query all edges that have an edge to
'given_vertex' with igraph_adjacent() and then check their source
vertex with igraph_edge().


On Thu, Feb 18, 2010 at 4:33 PM, Matthew Walker
<address@hidden> wrote:
> Hi,
> I am a bit stumped.  I would like to select all edges that go from a set of
> vertices to given a vertex.  In R, I can do it with:
> edges <- E(graph)[ vertices_in_set %->% given_vertex]
> Can you tell me what functions I can use to do the same in C?  I found
> igraph_es_fromto(), but it has not yet been implemented.  I have tried to
> understand the R code in iterators.R but I haven't been very successful.
> Can someone show me what I'm missing?
> Thanks in advance!
> Matthew
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help

Gabor Csardi <address@hidden>     UNIL DGM

reply via email to

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