PairSet
in package
A way to keep track of pairs of things when the ordering of the pair does not matter. We do this by maintaining a sort of double adjacency sets.
Table of Contents
- $data : array<string|int, array<string|int, bool>>
- __construct() : mixed
- add() : mixed
- has() : bool
- pairSetAdd() : mixed
Properties
$data
private
array<string|int, array<string|int, bool>>
$data
Methods
__construct()
public
__construct() : mixed
Return values
mixed —add()
public
add(string $a, string $b, bool $areMutuallyExclusive) : mixed
Parameters
- $a : string
- $b : string
- $areMutuallyExclusive : bool
Return values
mixed —has()
public
has(string $a, string $b, bool $areMutuallyExclusive) : bool
Parameters
- $a : string
- $b : string
- $areMutuallyExclusive : bool
Return values
bool —pairSetAdd()
private
pairSetAdd(string $a, string $b, bool $areMutuallyExclusive) : mixed
Parameters
- $a : string
- $b : string
- $areMutuallyExclusive : bool