GraphStream Users

Archives de la liste Aide

Re: Clone graph object

Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT>
  • To: graphstream-users AT
  • Subject: Re: Clone graph object
  • Date: Sun, 18 May 2014 08:08:19 +0700

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.


Le 18 mai 2014 03:34, "Ilias Trichopoulos" <ilias.trichopoulos AT> 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
Any proposals?

Ilias Trichopoulos

CERN Technical Student
office: 33 1.009

Archives gérées par MHonArc 2.6.16.

Top of page