Learn R Programming

poseticDataAnalysis (version 1.0.0)

CrownPOSet: Building crowns.

Description

Builds a crown from two unordered collections of elements, with the same size.

Usage

CrownPOSet(elements_1, elements_2)

Value

A crown, an object of S4 class POSet.

Arguments

elements_1

A list of character strings.

elements_2

A list of character strings.

Details

Let \(a_1,\ldots,a_n\) and \(b_1,\ldots,b_n\) be two disjoint collections of \(n\) elements. The "crown" over them is the poset \(P=(V,\lhd)\) having \(a_1,\ldots,a_n,b_1,\ldots,b_n\) as ground set and where \((a_i||a_j)\), \((b_i||b_j)\), \((a_i||b_i)\) and \(a_i\lhd b_j\), for each \(i\neq j\) (\(||\) stands for "incomparable to").

Examples

Run this code
elems1<-c("a1", "a2", "a3", "a4", "a5")
elems2<-c("b1", "b2", "b3", "b4", "b5")
crown<-CrownPOSet(elems1, elems2)

Run the code above in your browser using DataLab