Processing Math: Done
jsMath
Differences between revisions 14 and 15
Revision 14 as of 2012-05-09 03:21:19
Size: 9363
Editor: jason
Comment:
Revision 15 as of 2012-05-09 03:45:02
Size: 9914
Editor: jason
Comment:
Deletions are marked like this. Additions are marked like this.
Line 98: Line 98:
def animate_contraction(g, e, frames = 12, **kwds):
    v1, v2 = e
    if not g.has_edge(v1,v2):
        raise ValueError, "Given edge not found on Graph"
    ls = []
    posd = g.get_pos()
    for j in range(frames):
        gp = Graph(g)
        posdp = dict(posd)
        p1 = posdp[v1]
        p2 = posdp[v2]
        posdp[v2] = [a*(frames-j)/frames + b*j/frames
                    for a,b in zip(p2,p1)]

        gp.set_pos(posdp)
        ls.append(plot(gp, **kwds))
    return ls
Line 234: Line 252:
      g = selector(graph_list.keys(), buttons = True),       g = selector(graph_list.keys(), buttons = True,default='CompleteGraph4'),
Line 236: Line 254:
      m = selector(graph_list.keys(), buttons = True),
      u3 = text_control(value='''? It is has, show it to me,
      m = selector(graph_list.keys(), buttons = True,default='CycleGraph4'),
      u3 = text_control(value='''? If it has, show it to me,
Line 251: Line 269:

Sage Interactions - Graph Theory

goto interact main page

Graph Browser

by Marshall Hampton

graph_browse.png

Automorphism Groups of some Graphs

by William Stein:

auto_graph2.png

View an induced subgraph

by Jason Grout

subgraph-interact.png

Animations of Graph Minors

by Pablo Angulo

wagner.gif

interact/graph_theory (last edited 2020-02-08 12:53:38 by chapoton)