Turns a partial ranking into a directed graph. An edge (u,v) is
P[u,v]=1, meaning that u is dominated by v.
A partial ranking as matrix object calculated with neighborhood_inclusion or positional_dominance.
Directed graph as an igraph object.
library(igraph) g <- threshold_graph(20, 0.1) P <- neighborhood_inclusion(g) d <- dominance_graph(P) ## Not run: plot(d) ## End(Not run) # to reduce overplotting use transitive reduction P <- transitive_reduction(P) d <- dominance_graph(P) ## Not run: plot(d) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.