33 print(repr(DM(A.uni_coloring(),1)))
40 color(Sparsity.dense(5,10))
46 color(A+Sparsity.triplet(5,5,[0],[4]))
50 color(A+Sparsity.triplet(5,5,[4],[0]))
54 color(A+Sparsity.triplet(5,5,[0]*5,list(range(5))))
59 color(A+Sparsity.triplet(5,5,list(range(5)),[0]*5))
69 print(
"Star colored: ")
70 print(repr(DM(A.star_coloring(1),1)))
76 color(Sparsity.dense(5,5))
80 color(A+Sparsity.triplet(5,5,[0]*5,list(range(5)))+Sparsity.triplet(5,5,list(range(5)),[0]*5))
87 A = DM([[1,1,0,0,0,0],[1,1,1,0,1,1],[0,1,1,1,0,0],[0,0,1,1,0,1],[0,1,0,0,1,0],[0,1,0,1,0,1]])