up previous next
moebius    --    Moebius function of a poset


Syntax
moebius(relP: LIST): LIST of INT

Description
This function returns a list L such that L[i] is the moebius function value of the node i in the poset from the list relP of the strict relations in the poset.



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