xxxxxxxxxx
# load library
load('http://jan.ucc.nau.edu/ns46/invariant/tactical.sage')
xxxxxxxxxx
# create the incidense matrix
edges = [(0,1), (0,2), (0, 8), (1,2), (2,3), (3,4), (3,5), (4,5), (5,6), (6,7), (6,8), (7,8)]
g=Graph(edges)
g.show(save_pos=True,figsize=[2,2],vertex_size=120)
M=g.incidence_matrix()
print(M)
Â
# M =designs.projective_plane(2).incidence_matrix() # Fano
xxxxxxxxxx
# find tactical decompositions
cols=tactical_decompositions(M)
for i,col in enumerate(cols):
print(i,":",col)
xxxxxxxxxx
# show poset
ps=poset(cols)
ps.show()
xxxxxxxxxx
# show orbit poset
ops=orbit_poset(M,cols)
ops.show()