Skip to main content

class GraphNonEmpty<N,Tp,TpG>

undocumented

Extends: NonEmptyBase<E>

Implements: GraphBase.NonEmpty<N,Tp>

Type parameters

NameConstraintsDefaultDescription
Nundocumented
TpGraphTypesContextImplundocumented
TpGWithGraphValues<Tp, N, any>WithGraphValues<Tp, N, any>undocumented

Properties

_NonEmptyType

undocumented

Definition

_NonEmptyType: TpG['nonEmpty'];

Overrides

NonEmptyBase._NonEmptyType

connectionSize

undocumented

Definition

readonly connectionSize: number;

Overrides

VariantGraphBase.connectionSize

context

undocumented

Definition

readonly context: TpG['context'];

Overrides

GraphBase.context

isDirected

undocumented

Definition

readonly isDirected: boolean;

Overrides

VariantGraphBase.isDirected

isEmpty

undocumented

Definition

get isEmpty(): false;

Overrides

NonEmptyBase.isEmptyNonEmpty.isEmpty

linkMap

undocumented

Definition

readonly linkMap: TpG['linkMapNonEmpty'];

Overrides

NonEmpty.linkMap

nodeSize

undocumented

Definition

get nodeSize(): number;

Overrides

VariantGraphBase.nodeSize

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>): TpG['nonEmpty'];

Parameters

NameTypeDescription
nodesStreamSource<N>

Overrides

GraphConnectNonEmpty.addNodes

asNormal

undocumented

Definition

asNormal(): any;

Overrides

NonEmptyBase.asNormal, NonEmpty.asNormal

assumeNonEmpty

undocumented

Definition

assumeNonEmpty(): any;

Overrides

NonEmptyBase.assumeNonEmpty, VariantGraphBase.assumeNonEmpty

connect

undocumented

Definition

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

Parameters

NameTypeDescription
node1N
node2N

Overrides

GraphBase.connect

connectAll

undocumented

Definition

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

Parameters

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

Overrides

GraphConnectNonEmpty.connectAll

copy

undocumented

Definition

copy(linkMap: TpG['linkMapNonEmpty'], connectionSize: number): TpG['nonEmpty'];

Parameters

NameTypeDescription
linkMapTpG['linkMapNonEmpty']
connectionSizenumber

copyE

undocumented

Definition

copyE(linkMap: TpG['linkMap'], connectionSize: number): TpG['normal'];

Parameters

NameTypeDescription
linkMapTpG['linkMap']
connectionSizenumber

disconnect

undocumented

Definition

disconnect<UN>(node1: RelatedTo<N, UN>, node2: RelatedTo<N, UN>): TpG['nonEmpty'];

Type parameters

NameDescription
UN

Parameters

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

Overrides

VariantGraphBase.disconnect

disconnectAll

undocumented

Definition

disconnectAll<UN>(links: StreamSource<Link<RelatedTo<N, UN>>>): TpG['nonEmpty'];

Type parameters

NameDescription
UN

Parameters

NameTypeDescription
linksStreamSource<Link<RelatedTo<N, UN>>>

Overrides

VariantGraphBase.disconnectAll

forEach

undocumented

Definition

forEach(f: (node: GraphElement<N>, index: number, halt: () => void) => void, options?: {
    state?: TraverseState;
  }): void;

Parameters

NameTypeDescription
f(node: GraphElement<N>, index: number, halt: () => void) => void
options{
    state?: TraverseState;
  }

Overrides

VariantGraphBase.forEach

getConnectionsFrom

undocumented

Definition

getConnectionsFrom<UN = N>(node1: RelatedTo<N, UN>): TpG['linkConnections'];

Type parameters

NameDefaultDescription
UNN

Parameters

NameTypeDescription
node1RelatedTo<N, UN>

Overrides

GraphBase.getConnectionsFrom

getConnectionStreamFrom

undocumented

Definition

getConnectionStreamFrom<UN = N>(node1: RelatedTo<N, UN>): Stream<Link<N>>;

Type parameters

NameDefaultDescription
UNN

Parameters

NameTypeDescription
node1RelatedTo<N, UN>

Overrides

VariantGraphBase.getConnectionStreamFrom

getConnectionStreamTo

undocumented

Definition

getConnectionStreamTo<UN = N>(node: RelatedTo<N, UN>): any;

Type parameters

NameDefaultDescription
UNN

Parameters

NameTypeDescription
nodeRelatedTo<N, UN>

Overrides

VariantGraphBase.getConnectionStreamTo

hasConnection

undocumented

Definition

hasConnection<UN = N>(node1: RelatedTo<N, UN>, node2: RelatedTo<N, UN>): boolean;

Type parameters

NameDefaultDescription
UNN

Parameters

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

Overrides

VariantGraphBase.hasConnection

hasNode

undocumented

Definition

hasNode<UN = N>(node: RelatedTo<N, UN>): boolean;

Type parameters

NameDefaultDescription
UNN

Parameters

NameTypeDescription
nodeRelatedTo<N, UN>

Overrides

VariantGraphBase.hasNode

isSink

undocumented

Definition

isSink<UN = N>(node: RelatedTo<N, UN>): boolean;

Type parameters

NameDefaultDescription
UNN

Parameters

NameTypeDescription
nodeRelatedTo<N, UN>

isSource

undocumented

Definition

isSource<UN>(node: RelatedTo<N, UN>): boolean;

Type parameters

NameDescription
UN

Parameters

NameTypeDescription
nodeRelatedTo<N, UN>

nonEmpty

undocumented

Definition

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

Overrides

NonEmptyBase.nonEmpty, NonEmpty.nonEmpty

removeNode

undocumented

Definition

removeNode<UN = N>(node: RelatedTo<N, UN>): TpG['normal'];

Type parameters

NameDefaultDescription
UNN

Parameters

NameTypeDescription
nodeRelatedTo<N, UN>

Overrides

VariantGraphBase.removeNode

removeNodes

undocumented

Definition

removeNodes<UN>(nodes: StreamSource<RelatedTo<N, UN>>): TpG['normal'];

Type parameters

NameDescription
UN

Parameters

NameTypeDescription
nodesStreamSource<RelatedTo<N, UN>>

Overrides

VariantGraphBase.removeNodes

removeUnconnectedNodes

undocumented

Definition

removeUnconnectedNodes(): TpG['normal'];

Overrides

VariantGraphBase.removeUnconnectedNodes

stream

undocumented

Definition

stream(): Stream.NonEmpty<GraphElement<N>>;

Overrides

NonEmptyBase.stream, NonEmpty.stream

streamConnections

undocumented

Definition

streamConnections(): Stream<WithGraphValues<Tp, N, any>['link']>;

Overrides

VariantGraphBase.streamConnections

streamNodes

undocumented

Definition

streamNodes(): Stream.NonEmpty<N>;

Overrides

NonEmpty.streamNodes

toBuilder

undocumented

Definition

toBuilder(): TpG['builder'];

Overrides

GraphBase.toBuilder

toJSON

undocumented

Definition

toJSON(): ToJSON<[N, [N][]][]>;

Overrides

VariantGraphBase.toJSON

toString

undocumented

Definition

toString(): string;

Overrides

VariantGraphBase.toString