Hi
I seem unable to control edge colors on my graphs. I have a graph with two vertex populations, A and B I have assigned colors according to a scheme that would normally provide four colors, as follows:
Hierarchy tree: [ 0. , 0. , 0.2, 0.1] Edges from A to B: [ 0., 0., 0., 1.] Edges from A to A: [ 0., 1., 0., 1.] Edges from B to B: [ 1., 0., 1., 1.]
All along the calculations I check colors with the constant result as follows: color {array([ 0. , 0. , 0.2, 0.1]), array([ 0., 0., 0., 1.]), array([ 0., 1., 0., 1.])} pen_width {1.0} …
(As it happens this sample has no B to B edges)
However, the final drawing shows as in the attached image, with a large variety of edge colors. Can anyone suggest where I am going wrong? What am I missing? _______________________________________________ graphtool mailing list [hidden email] https://lists.skewed.de/mailman/listinfo/graphtool HBS_Sample.png (986K) Download Attachment 
Administrator

Am 22.12.19 um 22:30 schrieb JeanPierre Paillet:
> Can anyone suggest where I am going wrong? What am I missing? Since you haven't provided a single line of code, it's rather difficult to guess.  Tiago de Paula Peixoto <[hidden email]> _______________________________________________ graphtool mailing list [hidden email] https://lists.skewed.de/mailman/listinfo/graphtool signature.asc (849 bytes) Download Attachment

Tiago de Paula Peixoto <tiago@skewed.de> 
Tiago:
I understand that in most cases the code is required.
However in this case I am asking a different question.
Since I can verify that, all the way through processing, my initial edge color property map is preserved, and I cannot delve into the libgraphtool library,
I was hoping that someone could tell me if there is some phase of color manipulation in the final drawing library that I don't know about.
In other words, where do all the unexpected, unwanted colors get introduced?
Thanks and Merry Christmas
JP
From: graphtool <[hidden email]> on behalf of Tiago de Paula Peixoto <[hidden email]>
Sent: 24 December 2019 06:15 To: Main discussion list for the graphtool project <[hidden email]> Subject: Re: [graphtool] Fourcolor problem :) Am 22.12.19 um 22:30 schrieb JeanPierre Paillet:
> Can anyone suggest where I am going wrong? What am I missing? Since you haven't provided a single line of code, it's rather difficult to guess.  Tiago de Paula Peixoto <[hidden email]> _______________________________________________ graphtool mailing list [hidden email] https://lists.skewed.de/mailman/listinfo/graphtool 
Administrator

Am 23.12.19 um 20:56 schrieb JeanPierre Paillet:
> In other words, where do all the unexpected, unwanted colors get introduced? Again, this is not possible to say if you will not show us what you are doing. I don't even know what function you are calling. Is it graph_draw() or NestedBlockState.draw() [guessing from the figure you sent]? The problem could be anywhere from a typo in your code to a bug in the library, and it's impossible to say without context. Please try to understand this. But if the question is simply: "Does graphtool add random colors and ignores my input per design?", then the answer is no. It's just hard to see how this question is useful to you. Best, Tiago  Tiago de Paula Peixoto <[hidden email]> _______________________________________________ graphtool mailing list [hidden email] https://lists.skewed.de/mailman/listinfo/graphtool

Tiago de Paula Peixoto <tiago@skewed.de> 
Thanks Tiago.
This 'no' answer is the first data point I needed.
I will continue to investigate. If necessary I will send a simplest possible sample (assuming I don't find the answer while building the sample...)
From: graphtool <[hidden email]> on behalf of Tiago de Paula Peixoto <[hidden email]>
Sent: Tuesday, December 24, 2019 7:49:44 PM To: Main discussion list for the graphtool project <[hidden email]> Subject: Re: [graphtool] Fourcolor problem :) Am 23.12.19 um 20:56 schrieb JeanPierre Paillet:
> In other words, where do all the unexpected, unwanted colors get introduced? Again, this is not possible to say if you will not show us what you are doing. I don't even know what function you are calling. Is it graph_draw() or NestedBlockState.draw() [guessing from the figure you sent]? The problem could be anywhere from a typo in your code to a bug in the library, and it's impossible to say without context. Please try to understand this. But if the question is simply: "Does graphtool add random colors and ignores my input per design?", then the answer is no. It's just hard to see how this question is useful to you. Best, Tiago  Tiago de Paula Peixoto <[hidden email]> _______________________________________________ graphtool mailing list [hidden email] https://lists.skewed.de/mailman/listinfo/graphtool _______________________________________________ graphtool mailing list [hidden email] https://lists.skewed.de/mailman/listinfo/graphtool 
Free forum by Nabble  Edit this page 