Relation

object Relation

The Relation object contains factory methods and concrete implementations.

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[A](f: A => Set[A]): Relation[A]

Returns an influence relation given a function A => Set[A]. To respect the contract of a Relation, the map f should return a set for every possible value of A-

Returns an influence relation given a function A => Set[A]. To respect the contract of a Relation, the map f should return a set for every possible value of A-

def apply[A](hash: Map[A, Set[A]]): Relation[A]

Returns an influence relation given a map hash. For elements which are not in the keyset of hash, it returns the empty set.

Returns an influence relation given a map hash. For elements which are not in the keyset of hash, it returns the empty set.

def apply[A](graph: Seq[(A, A)]): Relation[A]

Returns an relation given a traversable collection of pairs (u -> v), each pair meaning that u relates to v. When iterating over the image of u, elements are guaranteed to be returned in the order in which they appear in graph.

Returns an relation given a traversable collection of pairs (u -> v), each pair meaning that u relates to v. When iterating over the image of u, elements are guaranteed to be returned in the order in which they appear in graph.