GraphStream Users

Archives de la liste Aide


Re: Clone graph object


Chronologique Discussions 
  • From: Ilias Trichopoulos <ilias.trichopoulos AT cern.ch>
  • To: "graphstream-users AT litislab.fr" <graphstream-users AT litislab.fr>, guilhelm savin <guilhelm.savin AT gmail.com>
  • Cc: Anastasios Andronidis <anastasios.andronidis AT cern.ch>
  • Subject: Re: Clone graph object
  • Date: Sun, 18 May 2014 07:25:38 +0000
  • Accept-language: en-GB, en-US

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

On May 18, 2014, at 3:08 AM, guilhelm savin <guilhelm.savin AT gmail.com> wrote:

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


Attachment: smime.p7s
Description: S/MIME cryptographic signature




Archives gérées par MHonArc 2.6.16.

Top of page