Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 0 years ago

sagequstions gravatar image

Obtaining a poset from a list of vectors in Sage

I have a list of vectors (coming from GAP) as follows:

U=[ [ 1, 0, 0, 0, 0 ], [ 0, 0, 0, 1, 1 ], [ 1, 1, 0, 0, 0 ], [ 0, 0, 1, 0, 0 ], [ 0, 0, 0, 1, 0 ], [ 0, 1, 0, 0, 1 ], [ 1, 0, 1, 0, 0 ], 
  [ 0, 0, 0, 0, 1 ], [ 1, 0, 1, 1, 0 ], [ 0, 1, 0, 0, 0 ], [ 0, 0, 1, 1, 1 ], [ 1, 1, 1, 1, 1 ] ]

I want to define a poset using this list of vector via sage by saying that for two vectors v and w in this list U, we have v<=w if w-v in in the list U. Is there an easy way to obtain this poset directly in Sage?