GraphStream Users

Archives de la liste Aide


Re: bug in gs 0.4.2


Chronologique Discussions 
  • From: Antoine Dutot <antoine.dutot AT gmail.com>
  • To: Luc Hogie <luc.hogie AT i3s.unice.fr>, graphstream-users AT litislab.fr
  • Subject: Re: bug in gs 0.4.2
  • Date: Mon, 28 Nov 2011 17:27:11 +0100

Hi Luc,

2011/11/28 Luc Hogie <luc.hogie AT i3s.unice.fr>
Sure. :)
Actually the new CSS-based model, as adequate as it may prove for many applications,
does not provide the shortcuts that I need. I simply needs methods for dynamically setting colors, size and shapes
of graph elements (vertices and edges). With CSS, simple calls like v.setColor(Color.red) are no longer available.
In my case, simple things became complex to write.

Concerning colors, we added the possibility to change the color simply by putting node.setAttribute("ui.color", Color.red) for example.
Indeed, you also have to put a CSS on nodes that tell the node color will be dynamic "node { fill-mode: dyn-plain; }" but this is very little code.

You can change the size the same way : node.setAttribute("ui.size", 10) for example (with "node {size-mode: dyn-size;}", also but your CSS will have 2 lines, no more).
 
Check it with the 1.1.

Concerning the bug, I will try to investigate. It will exhume the 0.4.2 from its deadly sleep and try it on OS/X ...

2011/11/28 Luc Hogie <luc.hogie AT i3s.unice.fr>
Sure. :)
Actually the new CSS-based model, as adequate as it may prove for many applications,
does not provide the shortcuts that I need. I simply needs methods for dynamically setting colors, size and shapes
of graph elements (vertices and edges). With CSS, simple calls like v.setColor(Color.red) are no longer available.
In my case, simple things became complex to write.

I already tried twice to migrate my code from 0.4.2 to 1.0 and each time it turned on to be unsuccessful.



On 11/28/11 11:34 AM, Antoine Dutot wrote:
That is an interesting comment, please elaborate.

You should have posted before on the changes to tell us ! We are interested in BOTH positive and negative comments.

And needless to say, that my later mail on pherd.jar still holds, correcting it for 1.x will probably correct it for 0.4.2.

Antoine

2011/11/28 Luc Hogie <luc.hogie AT i3s.unice.fr <mailto:luc.hogie AT i3s.unice.fr>>


   Thanks Guilhelm,

   Unfortunately the model in v1.0 doesn't meet my needs. Simple
   things require too long coding.
   I'll have to stick with 0.4.2 or quit.

   I'll try to find a solution.

   Thanks,
   Luc.



   On 11/28/11 11:18 AM, guilhelm savin wrote:

       Hi Luc,

       There is no more support for 0.4.2. We now put all our efforts
       on the
       1.x releases so support is dedicated to these 1.x  releases.

       Check new 1.1 release at   :
       http://graphstream-project.org/download/
       or  get nightly-builds here :
       http://graphstream-project.org/pub/1.x/nightly-build/
       <http://graphstream-project.org/pub/1.x/nightly-build/>

       Regards.

       2011/11/28 Luc Hogie <luc.hogie AT i3s.unice.fr
       <mailto:luc.hogie AT i3s.unice.fr> <mailto:luc.hogie AT i3s.unice.fr

       <mailto:luc.hogie AT i3s.unice.fr>>>


          Hi GS team,

          I'm still using GS 0.4.2. When I replaced by local JAR by the
          "official 0.4.2" release, I got the following error:

          Exception in thread "GraphStream layout thread"
          java.lang.AssertionError: Particle in two boxes at a time ?
             at org.miv.pherd.Particle.setBox( Particle.java:281)
             at org.miv.pherd.ParticleBox. removeAllParticles(
          ParticleBox.java:147)
             at org.miv.pherd.ntree.Cell. resize(Cell.java:534)
             at org.miv.pherd.ntree.NTree. checkDivisions(NTree.java:277)
             at org.miv.pherd.ParticleBox. step(ParticleBox.java:179)
             at org.miv.graphstream.algorithm.
          layout2.elasticbox.ElasticBox. compute(ElasticBox.java:490)
             at org.miv.graphstream.algorithm. layout2.LayoutRunner.run(
          LayoutRunner.java:194)


          I'm simply trying to display a 10x10 grid. This worked
       perfectly
          with my previous jar (dunno where I got it).

          Any idea?

          Thanks,
          Luc.

          --     Luc Hogie - CNRS Research Engineer
          COMRED Research Unit (I3S(CNRS-UNS) INRIA)

       http://www-sop.inria.fr/ members/Luc.Hogie/
       <http://www-sop.inria.fr/members/Luc.Hogie/>
       luc.hogie AT inria.fr <mailto:luc.hogie AT inria.fr>
       <mailto:luc.hogie AT inria.fr <mailto:luc.hogie AT inria.fr>>

       +33 4 89 73 24 25 <tel:%2B33%204%2089%2073%2024%2025>
       <tel:%2B33%204%2089%2073%2024%2025> (office)
       +33 6 80 91 40 71 <tel:%2B33%206%2080%2091%2040%2071>
       <tel:%2B33%206%2080%2091%2040%2071> (mobile)

          Skype ID: luchogie




       --         Guilhelm Savin
       PhD Student of Computer Science
       LITIS, University of Le Havre
       \/\/\/\/\/\/
       http://d3-project.org <http://d3-project.org>
       http://litis.univ-lehavre.fr/~savin
       <http://litis.univ-lehavre.fr/%7Esavin>
       <http://litis.univ-lehavre.fr/%7Esavin>
       http://iscn.univ-lehavre.fr <http://iscn.univ-lehavre.fr>
       http://www.graphstream-project.org
       <http://www.graphstream-project.org>

       /\/\/\/\/\/\



   --     Luc Hogie - CNRS Research Engineer
   COMRED Research Unit (I3S(CNRS-UNS) INRIA)

   http://www-sop.inria.fr/members/Luc.Hogie/
   luc.hogie AT inria.fr <mailto:luc.hogie AT inria.fr>
   +33 4 89 73 24 25 <tel:%2B33%204%2089%2073%2024%2025> (office)
   +33 6 80 91 40 71 <tel:%2B33%206%2080%2091%2040%2071> (mobile)
   Skype ID: luchogie




--
Luc Hogie - CNRS Research Engineer
COMRED Research Unit (I3S(CNRS-UNS) INRIA)

http://www-sop.inria.fr/members/Luc.Hogie/
luc.hogie AT inria.fr
+33 4 89 73 24 25 (office)
+33 6 80 91 40 71 (mobile)
Skype ID: luchogie





Archives gérées par MHonArc 2.6.16.

Top of page