Calculates the fraction of comparable pairs in a partial order.

comparable_pairs(P)

P | A partial order as matrix object, e.g. calculated with neighborhood_inclusion or positional_dominance. |
---|

Fraction of comparable pairs in `P`

.

#> [1] 0# All pairs of vertices are comparable in a threshold graph tg <- threshold_graph(100,0.3) P <- neighborhood_inclusion(g) comparable_pairs(P)#> [1] 0