class ValuedGraphNonEmpty<N,V,Tp,TpG>
undocumented
Extends: NonEmptyBase<E>
Implements: ValuedGraphBase.NonEmpty<N,V,Tp>
Type parameters
Name | Constraints | Default | Description |
---|---|---|---|
N | undocumented | ||
V | undocumented | ||
Tp | ValuedGraphTypesContextImpl | undocumented | |
TpG | WithGraphValues <Tp, N, V> | WithGraphValues <Tp, N, V> | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyType
connectionSize
undocumented
connectionSize
context
undocumented
context
isDirected
undocumented
isDirected
isEmpty
undocumented
isEmpty
linkMap
undocumented
linkMap
nodeSize
undocumented
nodeSize
Methods
[Symbol.iterator]
undocumented
[Symbol.iterator]
Definition
[Symbol.iterator]():
FastIterator
<E>;
Overrides
NonEmptyBase.[Symbol.iterator], FastIterable.[Symbol.iterator]
addNode
undocumented
addNode
addNodes
undocumented
addNodes
Definition
addNodes(nodes:
StreamSource
<N>): TpG['nonEmpty'];
Parameters
Name | Type | Description |
---|---|---|
nodes | StreamSource <N> |
Overrides
asNormal
undocumented
asNormal
assumeNonEmpty
undocumented
assumeNonEmpty
Definition
assumeNonEmpty(): any;
Overrides
NonEmptyBase.assumeNonEmpty, VariantGraphBase.assumeNonEmpty
connect
undocumented
connect
connectAll
undocumented
connectAll
Definition
connectAll(links:
StreamSource
<
WithGraphValues
<Tp, N, V>['link']>): TpG['nonEmpty'];
Parameters
Name | Type | Description |
---|---|---|
links | StreamSource < WithGraphValues <Tp, N, V>['link']> |
Overrides
copy
undocumented
copy
copyE
undocumented
copyE
disconnect
undocumented
disconnect
disconnectAll
undocumented
disconnectAll
Definition
disconnectAll<UN = N>(links:
StreamSource
<Link<
RelatedTo
<N, UN>>>): TpG['nonEmpty'];
Type parameters
Name | Default | Description |
---|---|---|
UN | N |
Parameters
Name | Type | Description |
---|---|---|
links | StreamSource <Link< RelatedTo <N, UN>>> |
Overrides
forEach
undocumented
forEach
Definition
forEach(f: (entry: ValuedGraphElement<N, V>, index: number, halt: () => void) => void, options?: {
state?:
TraverseState
;
}): void;
Parameters
Name | Type | Description |
---|---|---|
f | (entry: ValuedGraphElement<N, V>, index: number, halt: () => void) => void | |
options | { state?: TraverseState ; } |
Overrides
getConnectionsFrom
undocumented
getConnectionsFrom
getConnectionStreamFrom
undocumented
getConnectionStreamFrom
getConnectionStreamTo
undocumented
getConnectionStreamTo
getValue
undocumented
getValue
hasConnection
undocumented
hasConnection
hasNode
undocumented
hasNode
isSink
undocumented
isSink
isSource
undocumented
isSource
mapValues
undocumented
mapValues
Definition
mapValues<V2>(mapFun: (value: V, node1: N, node2: N) => V2):
WithGraphValues
<Tp, N, V2>['nonEmpty'];
Type parameters
Name | Description |
---|---|
V2 |
Parameters
Name | Type | Description |
---|---|---|
mapFun | (value: V, node1: N, node2: N) => V2 |
Overrides
modifyAt
undocumented
modifyAt
Definition
modifyAt(node1: N, node2: N, options: {
ifNew?:
OptLazyOr
<V, Token>;
ifExists?: ((value: V, remove: Token) => V
|
Token)
|
V;
}): TpG['nonEmpty'];
Parameters
Name | Type | Description |
---|---|---|
node1 | N | |
node2 | N | |
options | { ifNew?: OptLazyOr <V, Token>; ifExists?: ((value: V, remove: Token) => V | Token) | V; } |
Overrides
removeNode
undocumented
removeNode
removeNodes
undocumented
removeNodes
Definition
removeNodes<UN>(nodes:
StreamSource
<
RelatedTo
<N, UN>>): TpG['normal'];
Type parameters
Name | Description |
---|---|
UN |
Parameters
Name | Type | Description |
---|---|---|
nodes | StreamSource < RelatedTo <N, UN>> |
Overrides
stream
undocumented
stream
streamNodes
undocumented
streamNodes
toBuilder
undocumented
toBuilder
toJSON
undocumented
toJSON
toString
undocumented
toString