View source: R/poset_from_incidence.R
poset_from_incidence | R Documentation |
This function generates a poset from an incidence matrix x
. Such matrix is a named and logical
that is TRUE
if the row element is dominated by the column one, FALSE
otherwise. Such incidence relation should be reflexive, anti-symmetric, and transitive..
poset_from_incidence(x)
x |
a |
an environment of class poset
.
davey2002introductionPOSetR
poset
.
x <- c( TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE ) x <- matrix(x, nrow = 6, ncol = 6) rownames(x) <- colnames(x) <- LETTERS[1:6] p <- poset_from_incidence(x) plot(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.