Computes the surmise relation of knowledge structures.

# S3 method for kstructure
as.relation(x, ...)
  # S3 method for kbase
as.relation(x, ...)
  # S3 method for kfamset
as.relation(x, ...)

Arguments

x

An R object of class kstructure, kbase, or kfamset.

...

Currently not used.

Details

as.relation takes an arbitrary knowledge structure and computes the surmise relation of the corresponding quasi-ordinal knowledge space. Antisymmetric (and transitive) surmise relations may then be plotted as a Hasse diagram.

Value

An R object of class relation.

References

Doignon, J.-P., Falmagne, J.-C. (1999) Knowledge Spaces. Heidelberg: Springer Verlag.

See also

Examples

kst <- kstructure(set(set("a"), set("a","b"), set("a","c"), set("d","e"), set("a","b","d","e"), set("a","c","d","e"), set("a","b","c","d","e"))) as.relation(kst)
#> A binary relation of size 5 x 5.