[Top][All Lists]

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

[igraph] Node-level triad census with igraph for R

From: Marco Milano
Subject: [igraph] Node-level triad census with igraph for R
Date: Wed, 15 Jan 2014 11:49:08 +0100

Dear igraph list,

I'm currently working on extracting node-level properties from a social network and I'm stuck with the triad census calculation. As there isn't a function to call on the graph to perform such task, this is the most updated solution I found so far: http://stackoverflow.com/questions/12374534/how-to-mine-for-motifs-in-r-with-igraph

When I try to iterate the triad census on each node in my graph though, I get some strange results. First of all, being an undirected graph I should be getting 4 values but instead I get 16. Moreover, I don't know which resulting census corresponds to which node. The name attribute I call to iterate on the list of nodes seems to contain the NULL value but it correctly contains the vertex names at graph level before calling the graph.neighborhood function.

My problem is: how can I have each node printed out along with its triad census? 
And, please forgive me for adding a side-question to my main one but seen that we are talking about triads, I was wondering if anyone is aware of a way to calculate the Kalish & Robins Strong-Weak-NoTie relation?

Thanks. I appreciate any help or advice.


Find me on LinkedIn:

reply via email to

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