% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IsDominatedBy.R
\name{IsDominatedBy}
\alias{IsDominatedBy}
\title{Checking whether one element is dominated by another.}
\usage{
IsDominatedBy(poset, element1, element2)
}
\arguments{
\item{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()], ...) .}

\item{element1}{A character string (the name of a poset element).}

\item{element2}{A character string (the name of a poset element).}
}
\value{
A boolean value.
}
\description{
Given two elements \eqn{a} and \eqn{b} of \eqn{V}, checks whether \eqn{a\leq b} in poset \eqn{(V,\leq)}.
}
\examples{
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)

chk <- IsDominatedBy(pos, "a", "d")

}
