up previous next
MaxChains    --    maximal chains of the poset (from its relations)


Syntax
MaxChains(relP: LIST): LIST of LIST

Description
This function returns the list of all maximal chains from the list relP of the strict relations in a poset.



Example
// POSET:
//         3   4
//          \ /
//           2
//           |
//           1
/**/ relP := [[1,  2], [2, 3],  [2,  4]];
/**/ MaxChains(relP);
[[1,  2,  3],  [1,  2,  4]]