Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why the function graphs() can't generate graphs?

sage: L = list(graphs(5, lambda G: max(G.degree()) >= 2)) sage: len(L) 0 sage: L = list(graphs(5, lambda G: max(G.degree()) < 2)) sage: len(L) 3 sage: L = list(graphs(5)) sage: len(L) 34

Why the function graphs() can't generate graphs?

sage: L = list(graphs(5, lambda G: max(G.degree()) >= 2)) 2))

sage: len(L) len(L)

0 sage: L = list(graphs(5, lambda G: max(G.degree()) < 2)) 2))

sage: len(L) 3 len(L)

3

sage: L = list(graphs(5)) list(graphs(5))

sage: len(L) len(L)

34

Why the function graphs() can't generate graphs?

sage: L = list(graphs(5, lambda G: max(G.degree()) >= 2))

sage: len(L)

0 0

sage: L = list(graphs(5, lambda G: max(G.degree()) < 2))

sage: len(L)

3

sage: L = list(graphs(5))

sage: len(L)

34

click to hide/show revision 4
No.4 Revision

updated 2014-09-18 21:07:43 -0600

kcrisman gravatar image

Why the function graphs() can't generate graphs?

sage: L = list(graphs(5, lambda G: max(G.degree()) >= 2))

2)) sage: len(L)

sage: len(L)

0

0

sage: L = list(graphs(5, lambda G: max(G.degree()) < 2))

2)) sage: len(L)

sage: len(L)

3

3

sage: L = list(graphs(5))

list(graphs(5)) sage: len(L)

sage: len(L)

34

34

Why the function graphs() can't generate graphs?

sage: L = list(graphs(5, lambda G: max(G.degree()) >= 2))
 sage: len(L)
 0
 sage: L = list(graphs(5, lambda G: max(G.degree()) < 2))
 sage: len(L)
 3
 sage: L = list(graphs(5))
 sage: len(L)
 34
click to hide/show revision 6
retagged

Why the function graphs() can't generate graphs?

sage: L = list(graphs(5, lambda G: max(G.degree()) >= 2))
sage: len(L)
0
sage: L = list(graphs(5, lambda G: max(G.degree()) < 2))
sage: len(L)
3
sage: L = list(graphs(5))
sage: len(L)
34