intersection: Intersection of two posets

View source: R/intersection.R

intersectionR Documentation

Intersection of two posets

Description

Given two posets X and Y on the same set, intersection returns the poset Z defined by a < b in Z if and only if a < b in X and a < b in Y.

Usage

intersection(x, y)

x %it% y

Arguments

x

an S4 object of class Rcpp_POSet, see poset for details.

y

an S4 object of class Rcpp_POSet, see poset for details.

Value

an S4 object of class Rcpp_POSet, see poset for details

References

\insertRef

davey2002introductionPOSetR

See Also

poset

Examples

dom <- matrix(c(
  "a", "b",
  "c", "b",
  "b", "d"
), ncol = 2, byrow = TRUE)
p <- poset(x = dom)
plot(p)
dom <- matrix(c(
  "a", "b",
  "c", "b",
  "d", "b"
), ncol = 2, byrow = TRUE)
q <- poset(x = dom)
plot(q)
plot(p %it% q)


POSetR documentation built on Jan. 17, 2023, 5:18 p.m.