Learn R Programming

poseticDataAnalysis (version 1.0.0)

IncomparabilitySetOf: Extracting the incomparability set of a poset element.

Description

Extracts the elements incomparable with the input element, in the poset.

Usage

IncomparabilitySetOf(poset, element)

Value

A vector of character strings (the names of the poset elements incomparable with the input element).

Arguments

poset

An object of S4 class POSet. Argument poset must be created by using any function contained in the package aimed at building object of S4 class POSet (e.g. POSet(), LinearPOSet(), ProductPOSet(), ...) .

element

A character string (the names of a single poset element).

Examples

Run this code
elems <- c("a", "b", "c", "d")

dom <- matrix(c(
  "a", "b",
  "c", "b",
  "b", "d"
), ncol = 2, byrow = TRUE)

pos <- POSet(elements = elems, dom = dom)
incmp <- IncomparabilitySetOf(pos, "a")

Run the code above in your browser using DataLab