Learn R Programming

poseticDataAnalysis (version 1.0.0)

IsTransitive: Checking binary relation transitivity.

Description

Checks whether the input relation is transitive.

Usage

IsTransitive(rel)

Value

A boolean value.

Arguments

rel

A two-columns character matrix, each row comprising an element (pair) of the binary relation.

Examples

Run this code
rel <- matrix(c(
  "a", "b",
  "c", "b",
  "b", "d",
  "a", "d",
  "c", "d"
), ncol = 2, byrow = TRUE)

chk<-IsTransitive(rel)

Run the code above in your browser using DataLab