View source: R/check.preservation.R
is_preserved | R Documentation |
Checks if a partial ranking is preserved in the ranking induced by scores
.
is_preserved(P, scores)
P |
A partial ranking as matrix object calculated with neighborhood_inclusion or positional_dominance. |
scores |
Numeric vector containing the scores of a centrality index. |
In order for a score vector to preserve a partial ranking, the following
condition must be fulfilled:
P[u,v]==1 & scores[i]<=scores[j]
.
Logical scaler whether scores
preserves the relations in P
.
David Schoch
library(igraph)
# standard measures of centrality preserve the neighborhood inclusion preorder
data("dbces11")
P <- neighborhood_inclusion(dbces11)
is_preserved(P, degree(dbces11))
is_preserved(P, betweenness(dbces11))
is_preserved(P, closeness(dbces11))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.