# Revision history [back]

### 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

 4 No.4 Revision kcrisman 11887 ●36 ●122 ●237

### 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
 5 No.5 Revision tmonteil 21078 ●25 ●152 ●390 http://wiki.sagemath.o...

### 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
 6 retagged FrédéricC 2539 ●3 ●28 ●53

### 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