[jgrapht-users] info on cloning undirected graph
Brought to you by:
barak_naveh,
perfecthash
From: andrea p. <pag...@gm...> - 2010-02-02 13:06:38
|
Hi everybody, It's me again, well I need to have a copy of my graph to work on without reflecting the changing on the original one. I saw that UndirectedGraph class has no implementation of clone() method. My idea is the to extract the edgeFactory from the original one and build a SimpleGraph from that edgeFactory. Do you think it's correct? My issue is the edgeFactory I get from the original graph is empty...and so the simpleGraph I then create is empty as well... Any suggestion is more than welcome. Thank you in advance. Best Regards, Andrea PS: as you might see I'm not an experienced java programmer! |