up previous next
PosetNRank

rank of the node N from the relations of the graded poset

Syntax
PosetNRank(relP: LIST, N: INT): INT

Description
This function returns the rank of the node N from the list relP of the strict relations in a graded poset.

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

See Also