On Thu, Apr 30, 2009 at 12:05 AM, Rado <rki...@gmail.com> wrote: > > In the maple 13 thread, someone mentioned graph editor done in java > script that can be added to SAGE for interactive playing around with > small graphs. Since I recently came across the port of Processing to > JavaScript ( http://processingjs.org ), I decided to see how hard it > would be to implement that. > > Here is the result: > http://www.math.uiuc.edu/~rkirov2/processing/grapheditor.html > > There seems to be a bug in the JS port of processing, that makes it > redraw the picture even if it is told to redraw only upon change. So > currently the page might be a bit CPU-intensive (it won't crash your > browser). I am reporting this to the Processing group and hopefully > that should be fixed soon.
For me with FF 3 on OS X it "just worked" perfectly. > The code is basically Java so it has bunch of classes, which should > make it easy to implement a few more features, should you decide to go > with this. Wow, that's awesome! We definitely need to get this into sage. Even for plotting graphs it would be very nice, since it would help greatly being able to move around vertices in order to disambiguate the plots. For example, yesterday when teaching graph theory in my Sage class (http://wiki.wstein.org/09/480b) we plotted some complement of the Kite graph, and it very much looked like there were edges between certain vertices, but there weren't. It's just that the graph layout algorithm had placed vertices exactly on top of edges between other vertices. If one could move the vertices a little, it would be easy to disambiguate. And note that 3d plotting didn't help in this case, because for no good reason there are no vertex labels on 3d graph plots. We ended up using layout="circular", which helped enough. -- William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---