Hello,

Find the vertices with no inbound edges, i.e. vertices with an in-degree of
zero:

which(degree(g, mode="in") == 0)


T.

On Mon, May 29, 2017 at 7:27 AM, Adrian Dwiputra <
[email protected]> wrote:

> Hello there,
>
> Currently I've been trying to identify the vertice from which a complex
> directed network begins using igraph package in R. I already tried
> 'head_of' and 'tail_of' but the functions only return the heads and tails
> of the individual edges, not the network. Does anybody have any advice on
> the issue? Is there any way to achieve my objective?
>
> Many thanks in advance
>
> Best,
> Adrian
>
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to