netrankr (version 0.2.1)

transitive_reduction: Transitive Reduction

Description

Calculates the transitive reduction of a partial ranking.

Usage

transitive_reduction(P)

Arguments

P

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

Value

transitive reduction of P

Examples

Run this code
# NOT RUN {
library(igraph)

g <- threshold_graph(100,0.1)
P <- neighborhood_inclusion(g)
sum(P)

R <- transitive_reduction(P)
sum(R)
# }

Run the code above in your browser using DataLab