Robert Miller <[EMAIL PROTECTED]> writes: > sage: G = graphs.PetersenGraph() > sage: sage.graphs.graph_fast.spring_layout_fast(G, iterations=50, > dim=2)
[...] > sage: sage.graphs.graph_fast.spring_layout_fast(G, iterations=50, > dim=3) > That's exactly what I was looking for. This is great! Thanks to all that answered, Nikos > > On May 22, 7:46 am, "William Stein" <[EMAIL PROTECTED]> wrote: >> On Thu, May 22, 2008 at 7:43 AM, Robert Miller <[EMAIL PROTECTED]> wrote: >> >> > Nikos, >> >> >> This seems to work only with graphs already known to Sage but not with >> >> new graphs constructed by the user. For example: >> >> > If you construct a new graph, the position dictionary is not set. You >> > can do so with the set_pos() command, and if there is no position dict >> > set when you plot, it uses the spring algorithm to construct an >> > embedding. >> >> I think the person asking the question wants to know how to *get* the >> output of the spring algorithm. >> >> -- William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
