On 03/28/2011 10:17 AM, Sebastian Weber wrote:
I was wondering if it is possible to overlay two drawings of the same graph where I use different color-coded vertex sizes?
The only way of _actually_ overlaying (without modifying the graph) would be to create two png or svg figures, and overlaying them with some graphics software/library.
If you want to modify the graph, you can draw it first to obtain the positions, then duplicate the vertices and/or edges, copy the positions and set the colors you want, and then you have your "overlay".
Theses colors would need to be transparent and the graph layout must match in each drawing.
Transparent colors are no problem, as well as matching the layout (you just need to pass the 'pos' parameter, and set 'pin=True' so that the positions remain fixed).