Skip to content

Latest commit

 

History

History
141 lines (51 loc) · 1.21 KB

PairSet.md

File metadata and controls

141 lines (51 loc) · 1.21 KB

PairSet

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.

  • Full name: \GraphQL\Utils\PairSet

Properties

data

private bool[][] $data

Methods

__construct

public __construct(): mixed

has

public has(string $a, string $b, bool $areMutuallyExclusive): bool

Parameters:

Parameter Type Description
$a string
$b string
$areMutuallyExclusive bool

add

public add(string $a, string $b, bool $areMutuallyExclusive): mixed

Parameters:

Parameter Type Description
$a string
$b string
$areMutuallyExclusive bool

pairSetAdd

private pairSetAdd(string $a, string $b, bool $areMutuallyExclusive): mixed

Parameters:

Parameter Type Description
$a string
$b string
$areMutuallyExclusive bool