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, mixed>
- add() : void
- has() : bool
- pairSetAdd() : void
Properties
$data
private
array<string|int, mixed>
$data
= []
Methods
add()
public
add(string $a, string $b, bool $areMutuallyExclusive) : void
Parameters
- $a : string
- $b : string
- $areMutuallyExclusive : bool
Return values
void —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) : void
Parameters
- $a : string
- $b : string
- $areMutuallyExclusive : bool
