> Hello!Maybe somebody can help us with our current iGraph project.In this 
> project is 
> a network to be expanded. By 5%, 10% and so on. How can we add randomly 
> vertices and edges  
> to an existing network in R, iGraph? Another idea was to create a random 
> network (e.g.  
> "erdos.renyi.game(20, .8)") and to merge the existing network and the random 
> network.  
> We used "graph.union" but only the edges were merged, not the vertices.
If your graph has N vertices and you want to add a random portion such that the 
union has N+M vertices, generate a random graph with erdos.renyi.game() with 
N+M vertices, remove any edge having both its endpoints in {1..N}, and create 
the union of this graph and your original graph.

T.

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to