[sage-devel] Re: JavaScript Graph editor

2009-05-08 Thread Gonzalo Tornaria
On Fri, May 8, 2009 at 3:13 AM, Rado wrote: > > Btw, I finished the rudimentary version of the live editor. > > http://www.math.uiuc.edu/~rkirov2/processing/grapheditor_live.html > > Click the "live" checkbox to see the vertices rearrange is real time. > My implementation is quite simplistic (no

[sage-devel] Re: JavaScript Graph editor

2009-05-07 Thread Rob Beezer
On May 7, 11:13 pm, Rado wrote: > How does it handle intensive JS computations like : > > http://www.chiptune.com/starfield/starfield.html OK, Starfield is pretty fun. ;-) And works great on another 64-bit laptop I just tried. But is pathetic on my 64-bit desktop machine - I couldn't even tell

[sage-devel] Re: JavaScript Graph editor

2009-05-07 Thread William Stein
On Thu, May 7, 2009 at 11:13 PM, Rado wrote: > > That is weird. Unfortunately I don't have a 64bit OS to test it. > Processing JS is just a parser that parses processing (java) code and > runs it as JS. I tried to write everything in JS but its major pain in > the butt, since js has very weird wa

[sage-devel] Re: JavaScript Graph editor

2009-05-07 Thread Rado
That is weird. Unfortunately I don't have a 64bit OS to test it. Processing JS is just a parser that parses processing (java) code and runs it as JS. I tried to write everything in JS but its major pain in the butt, since js has very weird way of doing classes (they are not even called classes). H

[sage-devel] Re: JavaScript Graph editor

2009-05-07 Thread Rob Beezer
Looking real good. I like the red edges prior to deletion when you drag outside the canvas. I've now run this on two machines - one is 32-bit, one 64-bit. Otherwise pretty much the same - recent Firefox on KUbuntu, approx 3GHz chips. The editor is very crisp and robust on the 32-bit machine. O

[sage-devel] Re: JavaScript Graph editor

2009-05-07 Thread Rado
New version is up: http://www.math.uiuc.edu/~rkirov2/processing/grapheditor.html The short changelog: 1) By popular demand, when you drag a vertex out of the page the edges turn red to indicate you are going to lose it and it is not erased until you release the button. 2) There is an accompanyin

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread rjf
On May 5, 10:53 am, Andras Salamon wrote: . > I thought papers like your >    http://www.eecs.berkeley.edu/~fateman/papers/graphing7.pdf > were highly appropriate for the Graph Drawing symposium? >    http://facweb.cs.depaul.edu/gd2009/gd2009.asp > (Submission deadline is 31 May 2009.) > >

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Andras Salamon
On Tue, May 05, 2009 at 10:28:21AM -0700, RJF wrote: > 1. Where to publish papers like mine on this graph-input topic? > > There have occasionally been venues for articles like this, but they > have mostly been destroyed by people attempting to "upgrade" the > venue. I thought papers like you

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Rob Beezer
On May 5, 9:27 am, William Stein wrote: > Now *that* is a good idea.  I would really like the suggestion Jason > makes above. Very nice. Agreed. My implementations always allowed you to drag the vertex back and drop it back on the canvas unmolested wherever you liked. Including a visual cue th

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread rjf
1. Where to publish papers like mine on this graph-input topic? There have occasionally been venues for articles like this, but they have mostly been destroyed by people attempting to "upgrade" the venue. Thus ISSAC, one-time premier conference, has been changed into a dry- as-dust collectio

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 9:03 AM, Jason Grout wrote: > > Rob Beezer wrote: >> Well, I'll see your minus 10 and raise you 5. >> A massive +15 to "drag-and-trash". >> >> What if there was an Undo facility available? >> > > Why not make it Apple-style?  Drag the vertex off the canvas, and the > cursor

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Jason Grout
Rob Beezer wrote: > Well, I'll see your minus 10 and raise you 5. > A massive +15 to "drag-and-trash". > > What if there was an Undo facility available? > Why not make it Apple-style? Drag the vertex off the canvas, and the cursor turns to a poof cursor. If you drag it back on, before lettin

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Rob Beezer
The first version of a program like this I wrote with a colleague in the mid-80's. For several years it was an important part of our toolkit as we studied Siemion Fajtlowicz's Graffiti conjectures (automated conjecture creation in graph theory). This version had "drag-and-trash" and I included i

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Rado
Yeah, it was supposed to be a feature, but I agree that double click to remove is easier and less error-prone. I will give it a few days to see if anybody has good argument why we should keep it and if not I will remove it. I will also make undo for the last erased vertex. Rado On May 5, 9:13 a

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 7:10 AM, Rob Beezer wrote: > > Well, I'll see your minus 10 and raise you 5. > A massive +15 to "drag-and-trash". > > What if there was an Undo facility available? I still wouldn't like it. The problem is that it is just way too easy to bump the edges by accident when pla

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Rob Beezer
Well, I'll see your minus 10 and raise you 5. A massive +15 to "drag-and-trash". What if there was an Undo facility available? Rob On May 5, 6:39 am, William Stein wrote: > On Tue, May 5, 2009 at 6:35 AM, Rob Beezer wrote: > > > On May 5, 6:09 am, William Stein wrote: > >> That's a little di

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 6:35 AM, Rob Beezer wrote: > > On May 5, 6:09 am, William Stein wrote: >> That's a little disturbing. > > I think that is intentional.  Its like a giant trash-can icon. > > Easier than doing a right-click and selecting "delete vertex" off a > menu.  Drag it off the canvas

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Rob Beezer
On May 5, 6:09 am, William Stein wrote: > That's a little disturbing. I think that is intentional. Its like a giant trash-can icon. Easier than doing a right-click and selecting "delete vertex" off a menu. Drag it off the canvas and then let it go. ;-) Rob --~--~-~--~~

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread William Stein
On Mon, May 4, 2009 at 11:04 PM, Rado wrote: > > Hello again, > > As promised here is an updated version. > > http://www.math.uiuc.edu/~rkirov2/processing/grapheditor.html > > Controls are cleaned up (almost all mouse now). If you see something > buggy email me (or even better fix it :) the code

[sage-devel] Re: JavaScript Graph editor

2009-05-04 Thread Rob Beezer
Rado, Very, very nice! More later. Rob On May 4, 11:04 pm, Rado wrote: > Hello again, > > As promised here is an updated version. > > http://www.math.uiuc.edu/~rkirov2/processing/grapheditor.html > > Controls are cleaned up (almost all mouse now). If you see something > buggy email me (or eve

[sage-devel] Re: JavaScript Graph editor

2009-05-04 Thread Rado
Hello again, As promised here is an updated version. http://www.math.uiuc.edu/~rkirov2/processing/grapheditor.html Controls are cleaned up (almost all mouse now). If you see something buggy email me (or even better fix it :) the code is in page). I think I will add some simple control for cloni

[sage-devel] Re: JavaScript Graph editor

2009-05-04 Thread Rob Beezer
On May 4, 1:13 am, Fidel wrote: > Hello Rob, > > I spent some time this weekend coding a function to get the tkz-graph > string of a graph. You can find what I have got in > > http://fidelinux.googlepages.com/tkz-string.sage Hi Fidel, I got your code wrapped up into the graph object as a method

[sage-devel] Re: JavaScript Graph editor

2009-05-04 Thread Rob Beezer
On May 4, 5:03 pm, rjf wrote: > You might find this paper interesting, since it discusses the linkage > of an interactive graphics system (for graphs) to a computer algebra > system. Hi Richard, Thanks for including that in the discussion - there are a lot of good ideas in there. I've thought

[sage-devel] Re: JavaScript Graph editor

2009-05-04 Thread William Stein
On Mon, May 4, 2009 at 5:03 PM, rjf wrote: > > You might find this paper interesting, since it discusses the linkage > of an interactive graphics system (for graphs) to a computer algebra > system. > > http://www.eecs.berkeley.edu/~fateman/papers/graphing7.pdf > > After glancing at the pictures i

[sage-devel] Re: JavaScript Graph editor

2009-05-04 Thread rjf
You might find this paper interesting, since it discusses the linkage of an interactive graphics system (for graphs) to a computer algebra system. http://www.eecs.berkeley.edu/~fateman/papers/graphing7.pdf After glancing at the pictures in the paper, you might be surprised by how few lines of co

[sage-devel] Re: JavaScript Graph editor

2009-05-04 Thread Rob Beezer
Hi Fidel, That looks great! We might be able to also take advantage of the styles/themes that tkz-graph implements to quickly get a variety of {consistent|pleasing} output options with very little code on our end. ;-) Three exams to give and grade today, but I'll write more later about getting

[sage-devel] Re: JavaScript Graph editor

2009-05-04 Thread Fidel
Hello Rob, I spent some time this weekend coding a function to get the tkz-graph string of a graph. You can find what I have got in http://fidelinux.googlepages.com/tkz-string.sage That is what I have got so far, it has very basic functionality. I would still like to incorporate edge and vertex

[sage-devel] Re: JavaScript Graph editor

2009-05-03 Thread Rob Beezer
I've created a ticket for implementing latex(g) using tkz-graph at http://trac.sagemath.org/sage_trac/ticket/5975 I've spent some time with tkz-graph and it should be relatively straightforward to get some basic functionality implemented into Sage by building on this. John Palmieri has started

[sage-devel] Re: JavaScript Graph editor

2009-05-03 Thread bbarker
Agreed +1, I'll probably be wanting something just like this in the near future. On May 3, 2:43 pm, Stephen Hartke wrote: > On Thu, Apr 30, 2009 at 2:05 AM, Rado wrote: > > Here is the result: > >http://www.math.uiuc.edu/~rkirov2/processing/grapheditor.html

[sage-devel] Re: JavaScript Graph editor

2009-05-03 Thread Stephen Hartke
On Thu, Apr 30, 2009 at 2:05 AM, Rado wrote: > Here is the result: > http://www.math.uiuc.edu/~rkirov2/processing/grapheditor.html > Rado, This is really cool! It would be awesome if this was incorporated into Sage. Best wishes,

[sage-devel] Re: JavaScript Graph editor

2009-05-01 Thread Nicolas M. Thiery
On Fri, May 01, 2009 at 10:51:57AM -0700, Rob Beezer wrote: > > On May 1, 9:38 am, Fidel wrote: > > I was thinking of maybe being able to export to another format to be > > able to get drawings as well. A LaTeX package for drawing graphs that > > I like very much is tkz-graph, > > Hi Fidel, >

[sage-devel] Re: JavaScript Graph editor

2009-05-01 Thread Rob Beezer
On May 1, 9:38 am, Fidel wrote: > I was thinking of maybe being able to export to another format to be > able to get drawings as well. A LaTeX package for drawing graphs that > I like very much is tkz-graph, Hi Fidel, Thanks for the information on all of this - those examples are very nice. Ra

[sage-devel] Re: JavaScript Graph editor

2009-05-01 Thread Fidel
Hello Rado! Very nice editor! :-) I was thinking of maybe being able to export to another format to be able to get drawings as well. A LaTeX package for drawing graphs that I like very much is tkz-graph, http://altermundus.com/pages/graph.html which is built on top of TikZ. I was playing arou

[sage-devel] Re: JavaScript Graph editor

2009-05-01 Thread Michel
I very much like the self organizing feature of the graphs on the applets on this page http://people.math.jussieu.fr/~keller/quivermutation/ Don't forget to check "Live Quiver". It's like what GraphViz does but then in real time. Regards, Michel --~--~-~--~~~---~-

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread Rob Beezer
On Apr 30, 4:27 pm, Rado wrote: > I will try to work a bit this weekend on the user-interface. I see > some great suggestions by Rob, that are straight-forward to implement. > I don't do much graph theory, so if you've seen good graph editor > interfaces, send me a link for inspiration. Adding a

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread Jason Grout
Rado wrote: > > What might be even better is to send a particular embedding to the > editor (i.e. send the adj. lists + vertices coordinates), but I am not > sure if this info is easily extractable (in simple (x,y) form) from > the graph theory libraries. Yes, it is simple: sage: g=graphs.Path

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread Rado
Thanks for the positive feedback. I fixed the redraw bug in Processing JS, so now it redraws only when something is moved (no more CPU drainage). I will try to work a bit this weekend on the user-interface. I see some great suggestions by Rob, that are straight-forward to implement. I don't do mu

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread Nicolas M. Thiery
On Thu, Apr 30, 2009 at 05:33:59PM -0400, David Roe wrote: > I also think that an interactive graph editor would be a very cool feature. +3!! (on Anne's and Florent behalf) > Perhaps a good project to work on at Sage Days 15? I'll be pretty busy there, but volunteer to beta test it and pro

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread David Roe
I also think that an interactive graph editor would be a very cool feature. Perhaps a good project to work on at Sage Days 15? David On Thu, Apr 30, 2009 at 5:14 PM, Rob Beezer wrote: > > On Apr 30, 12:05 am, Rado wrote: > > I decided to see how hard it > > would be to implement that. > > Hi Ra

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread Rob Beezer
On Apr 30, 12:05 am, Rado wrote: > I decided to see how hard it > would be to implement that. Hi Rado, Very nice! This is a Beautiful Thing. ;-) I've built a couple of programs in the past that would link a graph editor to computational routines to allow one to experiment with changing a gra

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread William Stein
On Thu, Apr 30, 2009 at 9:17 AM, Michel wrote: > > That's too bad. I knew GraphViz was open source. I didn't know > they chose a GPL incompatible license. > > Michel It couldn't hurt for you to write to them and complain. William > On Apr 30, 6:06 pm, William Stein wrote: >> On Thu, Apr 30,

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread Michel
That's too bad. I knew GraphViz was open source. I didn't know they chose a GPL incompatible license. Michel On Apr 30, 6:06 pm, William Stein wrote: > On Thu, Apr 30, 2009 at 9:02 AM, Michel > wrote: > > > I wonder if GraphViz is part of sage. I thought it was > > specially designed for visu

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread William Stein
On Thu, Apr 30, 2009 at 9:02 AM, Michel wrote: > > I wonder if GraphViz is part of sage. I thought it was > specially designed for visualizing graphs. 1) GraphViz doesn't work as a web application (via a web browser). 2) GraphViz cannot be included in Sage because it is licensed under a GPL-inc

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread Michel
I wonder if GraphViz is part of sage. I thought it was specially designed for visualizing graphs. --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroup

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread William Stein
On Thu, Apr 30, 2009 at 12:05 AM, Rado 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.or

[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread Franco Saliola
On Thu, Apr 30, 2009 at 9:05 AM, Rado 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