Returns an relation given a traversable collection of pairs (u -> v)
, each pair meaning that u
relates to v
.
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 influence relation given a map hash
.
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 function A => Set[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
-
The
Relation
object contains factory methods and concrete implementations.