Skip to contents

Calculate the maximal and minimal rank possible for each node in any ranking that is in accordance with the partial ranking P.

Usage

rank_intervals(P)

Arguments

P

A partial ranking as matrix object calculated with neighborhood_inclusion or positional_dominance.

Value

An object of type netrankr_interval, a data frame with columns node, min_rank and max_rank.

Details

For exact rank probabilities use exact_rank_prob.

See also

Author

David Schoch

Examples

P <- matrix(c(0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, rep(0, 10)), 5, 5, byrow = TRUE)
rank_intervals(P)
#> node:V1 rank interval: [1, 2]
#> node:V2 rank interval: [1, 4]
#> node:V3 rank interval: [2, 4]
#> node:V4 rank interval: [3, 5]
#> node:V5 rank interval: [3, 5]