Is it possible to change color of edge?

zandr14
2010-06-23
2013-04-20
  • zandr14

    zandr14 - 2010-06-23

    Hi,
    Neither via Tulip editor nor programmatically 

    pNodeLinkDiagramComponent->getGraph()->getProperty<tlp::ColorProperty>("viewColor")->setEdgeValue(tlp::edge(nEdge), tlp::Color(255,255,0));

    can I change the color of edge.  The only case when color gets changed I found is when I change color of neighbour nodes.

     
  • David Auber

    David Auber - 2010-06-23

    By default the color of edges are interpolated. (The rendering engine use the color of the source and target of the edge).
    In your case you must deactivate the edge color interpolation mode (you should also have a look to size interpolation mode if you want to play with edge size).

    Best regards,
    David

     
  • zandr14

    zandr14 - 2010-06-23

    Thank you so much for prompt reply. It worked out perfectly.
    Best regards.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks