KN Patterns - Sage

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

5/3/2014

Kn patterns -- Sage

Knpatterns
g = graphs.CompleteGraph(5)
print euler_phi(5)/2
g.show()
2

g = graphs.CompleteGraph(6)
print euler_phi(6)/2
g.show()
1

http://localhost:8080/home/admin/29/print

1/3

5/3/2014

Kn patterns -- Sage

g = graphs.CompleteGraph(7)
print euler_phi(7)/2 # 3
g.show()
# 0,2,4,6,1,3,5,0
# 0,1,2,3,4,5,6,0
# 0,3,6,2,5,1,4,0
3

http://localhost:8080/home/admin/29/print

2/3

5/3/2014

Kn patterns -- Sage

http://localhost:8080/home/admin/29/print

3/3

You might also like