Skip to main content

class ValuedGraphBuilder<N,V,Tp,TpG>

undocumented

Type parameters

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

Properties

_linkMap

undocumented

Definition

_linkMap?: TpG['linkMapBuilder'];

_lock

undocumented

Definition

_lock: number;

addGraphElement

undocumented

Definition

addGraphElement: (element: ValuedGraphElement<N, V>) => boolean;

addGraphElements

undocumented

Definition

addGraphElements: (elements: StreamSource<ValuedGraphElement<N, V>>) => boolean;

addNode

undocumented

Definition

addNode: (node: N) => boolean;

addNodeInternal

undocumented

Definition

addNodeInternal: (node: N) => boolean;

addNodes

undocumented

Definition

addNodes: (nodes: StreamSource<N>) => boolean;

build

undocumented

Definition

build: () => TpG["normal"];

buildMapValues

undocumented

Definition

buildMapValues: <V2>(mapFun: (value: V, node1: N, node2: N) => V2) => WithGraphValues<Tp, N, V2>["normal"];

connect

undocumented

Definition

connect: (node1: N, node2: N, value: V) => boolean;

connectAll

undocumented

Definition

connectAll: (connections: StreamSource<TpG["link"]>) => boolean;

connectInternal

undocumented

Definition

connectInternal: (node1: N, node2: N, value: V) => boolean;

connectionSize

undocumented

Definition

connectionSize: number;

context

undocumented

Definition

readonly context: TpG['context'];

disconnect

undocumented

Definition

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

disconnectAll

undocumented

Definition

disconnectAll: <UN>(connections: StreamSource<Link<RelatedTo<N, UN>>>) => boolean;

disconnectInternal

undocumented

Definition

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

getValue

undocumented

Definition

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

hasConnection

undocumented

Definition

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

hasNode

undocumented

Definition

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

isDirected

undocumented

Definition

readonly isDirected: boolean;

isEmpty

undocumented

Definition

get isEmpty(): boolean;

linkMap

undocumented

Definition

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

modifyAt

undocumented

Definition

modifyAt: (node1: N, node2: N, options: {
    ifNew?: OptLazyOr<V, Token>;
    ifExists?: ((value: V, remove: Token) => V |Token)| V;
  }) => boolean;

nodeSize

undocumented

Definition

get nodeSize(): number;

removeNode

undocumented

Definition

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

removeNodeInternal

undocumented

Definition

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

removeNodes

undocumented

Definition

removeNodes: <UN>(nodes: StreamSource<RelatedTo<N, UN>>) => boolean;

source

undocumented

Definition

source?: TpG["nonEmpty"] | undefined;

Methods

checkLock

undocumented

Definition

checkLock(): void;