Learn R Programming

agop (version 0.1-3)

rel_graph: Create Adjacency Matrix of Given Binary Relation

Description

Note that adjacency matrix can also be conceived as a directed graph (DAG). ret[i,j] iff i

Usage

rel_graph(x, pord, ...)

Arguments

x
list with elements to compare, preferrably named
pord
function with 2 arguments, returning boolean value
...
additional arguments passed to pord

Value

  • square 0-1 Matrix (of class Matrix)

See Also

Other binary_relations: closure_total_fair, closure_transitive, de_transitive, get_equivalence_classes, get_incomparable_pairs, get_independent_sets, is_reflexive, is_total, is_transitive, pord_weakdom