intersection {POSetR} | R 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 |
y |
an S4 object of class |
Value
an S4 object of class Rcpp_POSet
, see poset
for details
References
Davey BA, Priestley HA (2002). Introduction to lattices and order. Cambridge university press.
See Also
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)
[Package POSetR version 1.1.4 Index]