search for: vertex1

Displaying 3 results from an estimated 3 matches for "vertex1".

Did you mean: vertex
2011 May 05
1
Looping over graphs in igraph
...ity detection algorithms on a couple thousand small graphs but don't know how to automate igraph looking at multiple graphs described in a single csv file. My data look like something in ncol format, but with an additional column that has an ID for which graph the edge belongs in: Graph ID | Vertex1 | Vertex2 | weight 1 | Alice | Bob | 2 1 | Alice | Chris | 1 1 | Alice | Jane | 2 1 | Bob | Jane | 2 1 | Chris | Jane | 3 2 | Alice | Tom | 2 2 | Alice | Kate | 1 2 | Kate | Tom | 3 2 | Tom | Mike | 2 so on and so forth for about 2000 graph IDs, each with about 20-40 vertices. I've...
2011 Aug 05
1
matrix into vector with vertex names
Using Igraph, I create shortest paths, then convert the matrix into three column vectors - "vertex1", "vertex2", "shortestpath" - as the code below shows. #code for generating shortest path matrix and creating a 3 columns from an igraph graph object "y" y_s<-shortest.paths(y, weights = NULL) y_s <- melt(y_s)[melt(upper.tri(y_s))$value,] #Step 2: this is...
2011 Apr 09
3
Converting edgelist to symmetric matrix
Hi, I have network data in the form of a couple of edgelists containing weights in the format "x,y,weight" whereby x represents row header and y represents column header. All edgelists are based on links among 634 nodes and I need to convert them into a 634*634 weighted matrix. I searched for online help using possible keywords I know, but I could not find a clue how to do this in