title: Indices of igraph transitivity
body: <p>I have list of large dataframes each with many rows of data that look like this</p>
  <pre><code>structure(list(from = c(6972, 48591, 2016, 48591), to = c(791, 
  234, 3304, 234), time = c(1521763200, 1521781282, 1521781543, 
  1521781548)), row.names = c(NA, 4L), class = &quot;data.frame&quot;)
  </code></pre>
  <p>I´m aiming to transform the data into graphs and the calculate transitivity for each vertex in the graph. Right now I´m doing this</p>
  <pre><code>emails&lt;-lapply(ldf,function(x){x %&gt;% group_by(from,to) %&gt;% summarize(weight = n())}) #where ldf is the list of df
  gemails&lt;-lapply(emails, function(x){graph_from_data_frame(x,directed=TRUE)})
  
  clustering &lt;- lapply(gemails, function(x){transitivity(x,type=&quot;local&quot;)})
  </code></pre>
  <p>While I seem to be getting the transitivity values, I do not know to which vertex does each value correspond. I know that not all the numbers exist in &quot;to&quot; or &quot;from&quot; so I do not know with which vertex to pair the result</p>
  <p>I will also want to calculate the transitivity with only the vertex present in &quot;from&quot; or &quot;to&quot; that are less than a number x (e.g. 4000), but I have not been able to do it. I´ve created a list of the indices I want, and I´ve tried to pass the list of vertices with <code>vids=</code> but it does not seem to work. I´ve also try with just passing 1:4000 to vids but it does not work.</p>