incomparable_pairs: Incomparable pairs in a partial order

Description Usage Arguments Value Author(s) See Also Examples

View source: R/comparable.pairs.R

Description

Calculates the fraction of incomparable pairs in a partial order.

Usage

1

Arguments

P

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

Value

Fraction of incomparable pairs in P.

Author(s)

David Schoch

See Also

comparable_pairs

Examples

1
2
3
4
5
6
7
8
library(igraph)
g <- sample_gnp(100, 0.1)
P <- neighborhood_inclusion(g)
comparable_pairs(P)
# All pairs of vertices are comparable in a threshold graph
tg <- threshold_graph(100, 0.3)
P <- neighborhood_inclusion(g)
comparable_pairs(P)

netrankr documentation built on Sept. 5, 2021, 5:19 p.m.