Skip to main content

class GraphBuilder<N,Tp,TpG>

undocumented

Type parameters​

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

Properties​

_linkMap​

undocumented

Definition​

_linkMap?: TpG['linkMapBuilder'];

_lock​

undocumented

Definition​

_lock: number;

addGraphElement​

undocumented

Definition​

addGraphElement: (element: GraphElement<N>) => boolean;

addGraphElements​

undocumented

Definition​

addGraphElements: (elements: StreamSource<GraphElement<N>>) => 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"];

connect​

undocumented

Definition​

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

connectAll​

undocumented

Definition​

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

connectIfNodesExist​

undocumented

Definition​

connectIfNodesExist: (node1: N, node2: N) => boolean;

connectInternal​

undocumented

Definition​

connectInternal: (node1: N, node2: N) => 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;

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'];

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;