Changeset 7460:1a7f1fcb0a5c


Ignore:
Timestamp:
11/23/07 10:54:01 (5 years ago)
Author:
R. L. Miller <rlmillster@…>
Branch:
default
Tags:
2.8.15.alpha1
Message:

fixed bug in plotting colored graphs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/graphs/graph.py

    r7369 r7460  
    26372637            sage: C.plot(vertex_labels=False, vertex_size=0, edge_colors=edge_colors).show() 
    26382638 
     2639            sage: D = graphs.DodecahedralGraph() 
     2640            sage: Pi = [[6,5,15,14,7],[16,13,8,2,4],[12,17,9,3,1],[0,19,18,10,11]] 
     2641            sage: D.show(partition=Pi) 
     2642 
    26392643        """ 
    26402644        from sage.plot.plot import networkx_plot 
     2645        from sage.plot.plot import rainbow 
    26412646        import networkx 
    26422647        if vertex_colors is None: 
     
    27822787            ...            edge_colors[R[i]].append((u,v,l)) 
    27832788            sage: C.plot(vertex_labels=False, vertex_size=0, edge_colors=edge_colors).show() 
     2789 
     2790            sage: D = graphs.DodecahedralGraph() 
     2791            sage: Pi = [[6,5,15,14,7],[16,13,8,2,4],[12,17,9,3,1],[0,19,18,10,11]] 
     2792            sage: D.show(partition=Pi) 
    27842793 
    27852794        """ 
Note: See TracChangeset for help on using the changeset viewer.