next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Posets :: union

union -- computes the union of two posets

Synopsis

Description

The union of two posets is the poset induced by the union of the ground sets and the covering relations.
i1 : union(chain 3, poset {{1,4},{4,5},{5,3}})

o1 = Poset{cache => CacheTable{}                                }
           GroundSet => {1, 2, 3, 4, 5}
           RelationMatrix => | 1 1 1 1 1 |
                             | 0 1 1 0 0 |
                             | 0 0 1 0 0 |
                             | 0 0 1 1 1 |
                             | 0 0 1 0 1 |
           Relations => {{1, 2}, {2, 3}, {1, 4}, {4, 5}, {5, 3}}

o1 : Poset

See also

Ways to use union :