Hello,

Say I have an edge property (of type double) with values ranging from 0.0 to
1.0.  I want this value to be set as the alpha for my edges or at least be
used as the offset with the gradient option in the graph_draw function.  The
idea is that for edges with stronger weights, I can reduce the alpha. 
(Edges weighted at 0.0 will disappear.)  How can I make that happen?

Using graph_draw(..., gradient=[values, 0, 0, 0, 1.0]) will not work, as the
0th index in the gradient option list must be a value from 0.0-1.0, and not
some set or list or properties.  There's got to be a way to do this, though. 
It's simple enough; I'm probably just missing something.

Thanks,
-John



--
View this message in context: 
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Setting-Edge-Gradient-tp4025655.html
Sent from the Main discussion list for the graph-tool project mailing list 
archive at Nabble.com.
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to