Skip to main content

class ValuedGraphEmpty<N,V,Tp,TpG>

undocumented

Extends: GraphEmptyBase

Implements: ValuedGraphBase<N,V,Tp>

Type parameters

NameConstraintsDefaultDescription
Nundocumented
Vundocumented
TpValuedGraphTypesContextImplundocumented
TpGWithGraphValues<Tp, N, V>WithGraphValues<Tp, N, V>undocumented

Properties

_NonEmptyType

undocumented

Definition

_NonEmptyType: TpG['nonEmpty'];

Overrides

EmptyBase._NonEmptyType

connectionSize

undocumented

context

undocumented

Definition

readonly context: TpG['context'];

Overrides

ValuedGraphBase.context

isDirected

undocumented

Definition

readonly isDirected: boolean;

Overrides

VariantGraphBase.isDirected

isEmpty

undocumented

Definition

get isEmpty(): true;

Overrides

EmptyBase.isEmptyVariantGraphBase.isEmpty

length

undocumented

Definition

get length(): 0;

Overrides

EmptyBase.length

linkMap

undocumented

Definition

get linkMap(): TpG['linkMap'];

Overrides

VariantValuedGraphBase.linkMap

nodeSize

undocumented

Definition

get nodeSize(): 0;

Overrides

GraphEmptyBase.nodeSizeVariantGraphBase.nodeSize

size

undocumented

Definition

get size(): 0;

Overrides

EmptyBase.size

Methods

[Symbol.iterator]

undocumented

addNode

undocumented

Definition

addNode(node: N): TpG['nonEmpty'];

Parameters

NameTypeDescription
nodeN

Overrides

GraphConnect.addNode

addNodes

undocumented

Definition

addNodes(nodes: StreamSource<N>): WithGraphValues<Tp, N, V>['nonEmpty'];

Parameters

NameTypeDescription
nodesStreamSource<N>

Overrides

GraphConnect.addNodes

assumeNonEmpty

undocumented

Definition

assumeNonEmpty(): never;

Overrides

EmptyBase.assumeNonEmpty, VariantGraphBase.assumeNonEmpty

connect

undocumented

Definition

connect(node1: N, node2: N, value: V): TpG['nonEmpty'];

Parameters

NameTypeDescription
node1N
node2N
valueV

Overrides

ValuedGraphBase.connect

connectAll

undocumented

Definition

connectAll(links: StreamSource<WithGraphValues<Tp, N, V>['link']>): WithGraphValues<Tp, N, V>['nonEmpty'];

Parameters

NameTypeDescription
linksStreamSource<WithGraphValues<Tp, N, V>['link']>

Overrides

GraphConnect.connectAll

disconnect

undocumented

Definition

disconnect(): any;

Overrides

GraphEmptyBase.disconnect, VariantGraphBase.disconnect

disconnectAll

undocumented

filter

undocumented

Definition

filter(): any;

Overrides

EmptyBase.filter

forEach

undocumented

Definition

forEach(): void;

Overrides

EmptyBase.forEach, VariantGraphBase.forEach

getConnectionsFrom

undocumented

Definition

getConnectionsFrom(): TpG['linkConnections'];

Overrides

ValuedGraphBase.getConnectionsFrom

getConnectionStreamFrom

undocumented

getConnectionStreamTo

undocumented

getValue

undocumented

Definition

getValue<UN, O>(node1: RelatedTo<N, UN>, node2: RelatedTo<N, UN>, otherwise?: OptLazy<O>): O;

Type parameters

NameDescription
UN
O

Parameters

NameTypeDescription
node1RelatedTo<N, UN>
node2RelatedTo<N, UN>
otherwiseOptLazy<O>

Overrides

VariantValuedGraphBase.getValue

hasConnection

undocumented

Definition

hasConnection(): false;

Overrides

GraphEmptyBase.hasConnection, VariantGraphBase.hasConnection

hasNode

undocumented

Definition

hasNode(): false;

Overrides

GraphEmptyBase.hasNode, VariantGraphBase.hasNode

isSink

undocumented

Definition

isSink(): false;

Overrides

GraphEmptyBase.isSink

isSource

undocumented

Definition

isSource(): false;

Overrides

GraphEmptyBase.isSource

mapValues

undocumented

Definition

mapValues<V2>(): WithGraphValues<Tp, N, V2>['normal'];

Type parameters

NameDescription
V2

Overrides

VariantValuedGraphBase.mapValues

modifyAt

undocumented

Definition

modifyAt(node1: N, node2: N, options: {
    ifNew?: OptLazyOr<V, Token>;
    ifExists?: (value: V, remove: Token) => V | Token;
  }): WithGraphValues<Tp, N, V>['normal'];

Parameters

NameTypeDescription
node1N
node2N
options{
    ifNew?: OptLazyOr<V, Token>;
    ifExists?: (value: V, remove: Token) => V | Token;
  }

Overrides

ValuedGraphBase.modifyAt

nonEmpty

undocumented

Definition

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

Overrides

EmptyBase.nonEmpty, VariantGraphBase.nonEmpty

remove

undocumented

Definition

remove(): any;

Overrides

EmptyBase.remove

removeNode

undocumented

Definition

removeNode(): any;

Overrides

GraphEmptyBase.removeNode, VariantGraphBase.removeNode

removeNodes

undocumented

Definition

removeNodes(): any;

Overrides

GraphEmptyBase.removeNodes, VariantGraphBase.removeNodes

removeUnconnectedNodes

undocumented

stream

undocumented

Definition

stream(): Stream<any>;

Overrides

EmptyBase.stream, VariantGraphBase.stream

streamConnections

undocumented

streamNodes

undocumented

toArray

undocumented

Definition

toArray(): [];

Overrides

EmptyBase.toArray

toBuilder

undocumented

Definition

toBuilder(): TpG['builder'];

Overrides

ValuedGraphBase.toBuilder

toJSON

undocumented

Definition

toJSON(): ToJSON<any[]>;

Overrides

VariantGraphBase.toJSON

toString

undocumented

Definition

toString(): string;

Overrides

VariantGraphBase.toString