On 03/05/2010 11:03 PM, m_p_v_13 wrote:
> set_edge_label is setting labels on intended and unintended graph
> 
> I generate some graphs and set one's edge labels. When I look at the
> next genetated graph, it's edge labels have been changed.
> I'm new to Sage/python so perhaps I goofed, but I doubt it.  Thanks
> for an explanation or workaround.
> 
> I am trying to help my daughter investigate an edge coloring graph
> theory problem.  Not the normal edge coloring constraint, though.
> 

> for G in graphs(3):

Replacing this with

for G in list(graphs(3)):

seems to work.  But I think this generates all of the graphs in advance.

-- 
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
URL: http://www.sagemath.org

Reply via email to