list is not callable

1 view
Skip to first unread message

michael

unread,
May 2, 2009, 3:40:03 PM5/2/09
to 480-uw09
I am running this on the 480b server:

g = graphs.RandomGNP(37,1/365)
len(g.edges(labels=False))

This always results in a

TypeError: 'list' object is not callable

error message referring to the second line of the command.

William Stein

unread,
May 2, 2009, 5:00:46 PM5/2/09
to 480-...@googlegroups.com
> --~--~---------~--~----~------------~-------~--~----~

It always works fine for me there:

sage: g = graphs.RandomGNP(37,1/365)
sage: len(g.edges(labels=False))
3


I just pasted your code in.

William

Reply all
Reply to author
Forward
0 new messages