From: SourceForge.net <no...@so...> - 2012-11-19 06:56:12
|
The following forum message was posted by allanzc at http://sourceforge.net/projects/jung/forums/forum/252062/topic/6199818: Hello, This may be a naive question, but I don't how to deal with my problem. I want to create several networks at one time. Say there are 10 files representing 10 networks, and now I would like to create these 10 networks at a time, I thought a loop may solve this, where in each round of the loop it creates one network and performs the related analysis. However, it seems I can not define multiple graphs with the "UndirectedSparseGraph<MyNode, MyLink>" structure, is there any way that I can do to solve it? Another way I think may work is that I only define one graph, then I can remove all the edges and nodes of one graph at the end of each loop, and add nodes/edges for another graph at the begining of the next loop, but is there any efficient way to clear a graph? Thanks! |