Learn R Programming

poseticDataAnalysis (version 1.0.0)

IncomparabilityRelation: Computing the incomparability relation of a poset.

Description

Computes the incomparability relation of the input poset.

Usage

IncomparabilityRelation(poset)

Value

A two-column matrix \(M\) (element \(M[i,2]\) is incomparable with element \(M[i,1]\)).

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(), ...) .

Examples

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

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

pos <- POSet(elements = elems, dom = dom)

M <- IncomparabilityRelation(pos)

Run the code above in your browser using DataLab