View source: R/comparable.pairs.R
incomparable_pairs | R Documentation |
Calculates the fraction of incomparable pairs in a partial order.
incomparable_pairs(P)
P |
A partial order as matrix object, e.g. calculated with neighborhood_inclusion or positional_dominance. |
Fraction of incomparable pairs in P
.
David Schoch
comparable_pairs
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.