I’m trying to draw a network graph in Ruby using Tk. I’ve figured out
how to create the canvas and draw the nodes and edges. I’m in the
process of implementing a spring graph layout algorithm, and I’m
wondering how I can redraw the nodes and edges at new coordinates when
the new coordinates are calculated using the spring algorithm. I had
planned on creating a new thread every half second or so to call the
spring algorithm and repaint the nodes and edges.
Can anyone tell me how to ‘move’ an existing TckOval in Ruby Tk?