igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Finding reciprocal node pairs in medium/large graphs


From: Tamás Nepusz
Subject: Re: [igraph] Finding reciprocal node pairs in medium/large graphs
Date: Sat, 16 Feb 2013 23:15:59 +0100

> How can I get a list (or vector, or df) containing all of the
> reciprocal node pairs?
See ?is.mutual; e.g.:

> el <- get.edgelist(g)
> el[is.mutual(g), ]

This gives you the subset of the edge list corresponding to mutual edges. If 
you are interested in the indices of mutual edges, use which(is.mutual(g))

-- 
T.




reply via email to

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