|
From: | Xuan Wang |
Subject: | [igraph] How to construct graphs dynamically? |
Date: | Fri, 3 Jan 2014 11:34:56 +0800 |
Thanks a lot! I might also need some help with another question: I have a graph A, then I want to add edges dynamically to the graph. Currently what I am doing is: use get.edgelist(A) to get the edgelist as a matrix, then change this matrix into a vector, then attach new edges to the end this vector, and finally use graph(edges, n) to construct the new graph. I want to add edges to the graph one by one. Each edge is added based on the structure of the graph in the previous step. What would be an efficient way of doing this? Thanks, Xuan Wang (PhD) Department of Statistics and Operations Research, University of North Carolina at Chapel Hill, Chapel Hill, NC, 27514 On Jan 3, 2014, at 1:00 AM, address@hidden wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |