rel_graph {agop}R Documentation

Create an Adjacency Matrix Representing a Binary Relation

Description

Returns a binary relation that represents results of comparisons with pord of all pairs of elements in x. We have ret[i,j] == pord(x[[i]], x[[j]], ...).

Usage

rel_graph(x, pord, ...)

Arguments

x

list with elements to compare, preferably named

pord

a function with two arguments, returning a single Boolean value, e.g., pord_spread, pord_nd, or pord_weakdom

...

additional arguments passed to pord

Value

Returns a square logical matrix. dimnames of the matrix correspond to names of x.

See Also

Other binary_relations: check_comonotonicity, pord_nd, pord_spread, pord_weakdom, rel_is_antisymmetric, rel_is_asymmetric, rel_is_cyclic, rel_is_irreflexive, rel_is_reflexive, rel_is_symmetric, rel_is_total, rel_is_transitive, rel_reduction_hasse


[Package agop version 0.2-3 Index]