Skip to main content

abstract class GraphEmptyBase

undocumented

Extends: EmptyBase

Extended by: GraphEmpty<N,V,Tp,TpG>, ValuedGraphEmpty<N,V,Tp,TpG>

Properties​

_NonEmptyType​

undocumented

Definition​

readonly _NonEmptyType: unknown;

Overrides​

EmptyBase._NonEmptyType

connectionSize​

undocumented

Definition​

get connectionSize(): 0;

isEmpty​

Returns true since the collection is empty.

Definition​

get isEmpty(): true;

Overrides​

EmptyBase.isEmpty

length​

Returns 0 for the length of the collection.

Definition​

get length(): 0;

Overrides​

EmptyBase.length

nodeSize​

undocumented

Definition​

get nodeSize(): 0;

size​

Returns 0 for the size of the collection.

Definition​

get size(): 0;

Overrides​

EmptyBase.size

Methods​

[Symbol.iterator]​

Returns an empty iterator.

Definition​

[Symbol.iterator](): FastIterator<any>;

Overrides​

EmptyBase.[Symbol.iterator]

assumeNonEmpty​

Throws a RimbuError.EmptyCollectionAssumedNonEmptyError, since the collection is empty.

Definition​

assumeNonEmpty(): never;

throws

RimbuError.EmptyCollectionAssumedNonEmptyError

Overrides​

EmptyBase.assumeNonEmpty

disconnect​

undocumented

Definition​

disconnect(): any;

disconnectAll​

undocumented

Definition​

disconnectAll(): any;

filter​

Returns this, since filtering an empty collection is still empty.

Definition​

filter(): any;

Overrides​

EmptyBase.filter

forEach​

Performs no action, since there are no elements.

Definition​

forEach(): void;

Overrides​

EmptyBase.forEach

getConnectionStreamFrom​

undocumented

Definition​

getConnectionStreamFrom(): Stream<any>;

getConnectionStreamTo​

undocumented

Definition​

getConnectionStreamTo(): Stream<any>;

hasConnection​

undocumented

Definition​

hasConnection(): false;

hasNode​

undocumented

Definition​

hasNode(): false;

isSink​

undocumented

Definition​

isSink(): false;

isSource​

undocumented

Definition​

isSource(): false;

nonEmpty​

Returns false, keeping the type narrowed to the empty variant.

Definition​

nonEmpty(): this is this['_NonEmptyType'];

Overrides​

EmptyBase.nonEmpty

remove​

Returns this, since removing from an empty collection has no effect.

Definition​

remove(): any;

Overrides​

EmptyBase.remove

removeNode​

undocumented

Definition​

removeNode(): any;

removeNodes​

undocumented

Definition​

removeNodes(): any;

removeUnconnectedNodes​

undocumented

Definition​

removeUnconnectedNodes(): any;

stream​

Returns an empty Stream.

Definition​

stream(): Stream<any>;

Overrides​

EmptyBase.stream

streamConnections​

undocumented

Definition​

streamConnections(): Stream<any>;

streamNodes​

undocumented

Definition​

streamNodes(): Stream<any>;

toArray​

Returns an empty array.

Definition​

toArray(): [];

Overrides​

EmptyBase.toArray