Changing default mouse hovering behavior in GTK interactive graphs
Hello, I've created a graph on graph-tool interactive window. I want to visually show the traversal of BFS or DFS. In this process, I want to update the node's and vertex's properties myself. By default, whenever the mouse is hovered over graphs nodes (drawn on GTK window) the node appears with blue halo color and all the connected nodes are highlighted with red edges and borders. I don't want any default highlighting. How can I turn off this default behavior? -- Mohit Kumar Jangid Mob# : +919530153503 “*The most powerful weapon on earth is the human soul on fire.” ~Field Marshal Ferdinand Foch*
On 27.12.2016 17:01, mohit jangid wrote:
Hello,
I've created a graph on graph-tool interactive window. I want to visually show the traversal of BFS or DFS. In this process, I want to update the node's and vertex's properties myself.
By default, whenever the mouse is hovered over graphs nodes (drawn on GTK window) the node appears with blue halo color and all the connected nodes are highlighted with red edges and borders. I don't want any default highlighting. How can I turn off this default behavior?
The simplest thing to do is to pass a transparent highlight color: graph_draw(g, vertex_halo_color=[1,1,1,0], highlight_color=[1,1,1,0]) Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
mohit jangid -
Tiago de Paula Peixoto