Rado and Kevin,

Very nice!  With the vertex numbers turned on, it takes me back.  But
we never dared do the dynamic layout (which is both fun and useful).

Some goofyness with loops.  Add a loop or two, then adjust vertex size
with sliders and the loops seem to go away.  This is reproducible for
me.  Before I was able to figure out how to reproduce this much, I was
getting an extra concentric circle around some vertices (I think
instead of loops), and as I adjusted vertex size, at some threshold
they would jump to some totally different location (and back again on
the other side of the threshold).  I did this several times (in new
windows) but I can't reproduce it now.  Firefox 3.5.6 on Kubuntu 9.10.

Nice improvements and great work!

Rob

On Mar 22, 4:44 pm, Rado <rki...@gmail.com> wrote:
> Thanks to Kevin (one of William's undergrad students), we have some
> major improvements to the graph editor. Take it for spin 
> athttp://www.math.uiuc.edu/~rkirov2/js-graph-editor/(a Sage patch will
> follow soon). I have only tested it in Firefox on Linux so interested
> to hear if anybody has some problems with it.
>
> improvements:
> - repulsion between vertices and dynamic zooming (so vertices never
> fly off stage).
> - circular layout
> - vertex numbering
> - one-step undo
> - loops
> - communication b/n Sage and JS is done in proper JSON
> - and many more (make sure you click the tweak button)
>
> I have to change the UI to accommodate some of the new features. There
> is no more dragging out of the screen to erase vertices. While it was
> cool, it required tweaks to the processing.js library. Since the
> library is still in active development, it is best to be able to drop
> the newest version and have the graph editor work. The new way of
> deleting vertices is right-click. Double-click now toggles a loop at
> the vertex.
>
> To spur further development I have created a separate repo for the
> project athttp://bitbucket.org/radokirov/js-graph-editor/.
> Compatibility with Sage is the number one priority, so the graph
> editor will always be compatible with the way Sage calls it.
>
> Next step is labels for edges and vertices and directed graphs.
> Processing.js seems to be doing well at displaying text and with JSON
> data transfer this should relatively easy to implement.
>
> Rado

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to