Displaying 1 result from an estimated 1 matches for "temp_graph".
Did you mean:
dump_graph
2011 May 05
1
Looping over graphs in igraph
...ly at the edges when the graph identifier is 1, make calculations on
that graph, then do it again for 2 and so forth. I suspect that this isn't
related to igraph specifically--I just don't know the equivalent command in
R for what in pseudo Stata code would read as:
forvalues i of 1/N {
temp_graph=subrows of the main csv file for which graphid==`i'
cs`i' = leading.eigenvector.community.step(temp_graph)
convert cs`i'$membership into a column in the original csv
}
I want the output to look something like:
Graph ID | Vertex1 | Vertex2 | weight | Vertex 1 membership | Vertex 2...