Thanks for the reply,
Seems like in the gs-core 1.2, the Graphs class (org.graphstream.graph.implementations.Graphs) does not contain the clone() method: 
-- Ilias Trichopoulos
CERN Technical Student HR-CB-MI office: 33 1.009
Hi Ilias, The clone() method is located in the utility class Graphs (org.graphstream.graph.implementations.Graphs). You can find some others usefull methods like one to merge graphs. Note that your workaround should work using the FileSinkDGS class. Hope it helps. Guilhelm
Le 18 mai 2014 03:34, "Ilias Trichopoulos" < ilias.trichopoulos AT cern.ch> a écrit :
Hello all,
I am looking for a clone method in the Graph class, but I can’t find any. A workaround I implemented is to export the graph object in .gml file using the FileSinkGML class, create a new graph object and then import it from the exported file. The problem with this workaround is that the import process gives errors when some attributes contain dots “.” in their name, like ui.label or ui.style.
Any proposals?
Thanks
--
Ilias Trichopoulos
CERN Technical Student
HR-CB-MI
office: 33 1.009
|