This method returns all relations of a poset, though loops may be suppressed with the input NoLoops.
i1 : P = divisorPoset 12; |
i2 : allRelations P o2 = {{1, 1}, {1, 2}, {1, 3}, {1, 4}, {1, 6}, {1, 12}, {2, 2}, {2, 4}, {2, ------------------------------------------------------------------------ 6}, {2, 12}, {3, 3}, {3, 6}, {3, 12}, {4, 4}, {4, 12}, {6, 6}, {6, 12}, ------------------------------------------------------------------------ {12, 12}} o2 : List |
i3 : allRelations(P, true) o3 = {{1, 2}, {1, 3}, {1, 4}, {1, 6}, {1, 12}, {2, 4}, {2, 6}, {2, 12}, {3, ------------------------------------------------------------------------ 6}, {3, 12}, {4, 12}, {6, 12}} o3 : List |
The object allRelations is a method function.