@likec4/core 1.57.0 → 1.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder/index.d.mts +2 -2
- package/dist/builder/index.mjs +2 -1
- package/dist/chunks/Builder.view-element.mjs +2 -0
- package/dist/{_chunks → chunks}/LikeC4Model.d.mts +25 -27
- package/dist/{_chunks → chunks}/_types.d.mts +302 -57
- package/dist/{_chunks → chunks}/_types2.d.mts +2 -2
- package/dist/chunks/assignTagColors.mjs +1 -0
- package/dist/chunks/calcDriftsFromSnapshot.mjs +1 -0
- package/dist/chunks/default-map.d.mts +29 -0
- package/dist/{_chunks → chunks}/index.d.mts +938 -194
- package/dist/{_chunks → chunks}/index2.d.mts +21 -19
- package/dist/{_chunks → chunks}/index3.d.mts +14 -3
- package/dist/{_chunks/index5.d.mts → chunks/index4.d.mts} +153 -4
- package/dist/{_chunks/index4.d.mts → chunks/index5.d.mts} +2 -2
- package/dist/chunks/libs/chroma-js.mjs +15 -0
- package/dist/chunks/libs/graphology-dag.mjs +1 -0
- package/dist/chunks/libs/graphology.mjs +1 -0
- package/dist/chunks/libs/hast-util-sanitize.mjs +1 -0
- package/dist/chunks/libs/hast-util-to-html.mjs +9 -0
- package/dist/chunks/libs/mdast.mjs +29 -0
- package/dist/chunks/libs/mnemonist.mjs +1 -0
- package/dist/chunks/libs/ohash.mjs +1 -0
- package/dist/chunks/libs/remark.mjs +3 -0
- package/dist/chunks/libs/remeda.mjs +1 -0
- package/dist/chunks/libs/unified.mjs +1 -0
- package/dist/chunks/model.mjs +4 -0
- package/dist/chunks/rolldown-runtime.mjs +1 -0
- package/dist/chunks/types.mjs +9 -0
- package/dist/compute-view/index.d.mts +56 -18
- package/dist/compute-view/index.mjs +2 -2
- package/dist/geometry/index.d.mts +2 -2
- package/dist/geometry/index.mjs +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +3 -3
- package/dist/model/index.mjs +1 -1
- package/dist/styles/index.d.mts +3 -3
- package/dist/styles/index.mjs +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.mjs +1 -1
- package/dist/utils/graphology/index.d.mts +618 -1
- package/dist/utils/graphology/index.mjs +1 -1
- package/dist/utils/index.d.mts +4 -4
- package/dist/utils/index.mjs +1 -1
- package/package.json +17 -18
- package/dist/THIRD-PARTY-LICENSES.md +0 -1034
- package/dist/_chunks/Builder.view-element.mjs +0 -2
- package/dist/_chunks/assignTagColors.mjs +0 -1
- package/dist/_chunks/libs/@ungap/structured-clone.mjs +0 -1
- package/dist/_chunks/libs/bail.mjs +0 -1
- package/dist/_chunks/libs/ccount.mjs +0 -1
- package/dist/_chunks/libs/character-entities-html4.mjs +0 -1
- package/dist/_chunks/libs/character-entities-legacy.mjs +0 -1
- package/dist/_chunks/libs/character-entities.mjs +0 -2
- package/dist/_chunks/libs/chroma-js.mjs +0 -15
- package/dist/_chunks/libs/comma-separated-tokens.mjs +0 -1
- package/dist/_chunks/libs/decode-named-character-reference.mjs +0 -1
- package/dist/_chunks/libs/defu.mjs +0 -1
- package/dist/_chunks/libs/devlop.mjs +0 -1
- package/dist/_chunks/libs/escape-string-regexp.mjs +0 -1
- package/dist/_chunks/libs/extend.mjs +0 -1
- package/dist/_chunks/libs/graphology-dag.d.mts +0 -607
- package/dist/_chunks/libs/graphology-dag.mjs +0 -1
- package/dist/_chunks/libs/graphology.mjs +0 -1
- package/dist/_chunks/libs/hast-util-sanitize.mjs +0 -1
- package/dist/_chunks/libs/hast-util-to-html.mjs +0 -9
- package/dist/_chunks/libs/is-plain-obj.mjs +0 -1
- package/dist/_chunks/libs/longest-streak.mjs +0 -1
- package/dist/_chunks/libs/markdown-table.mjs +0 -2
- package/dist/_chunks/libs/mdast-util-find-and-replace.mjs +0 -1
- package/dist/_chunks/libs/mdast-util-from-markdown.mjs +0 -3
- package/dist/_chunks/libs/mdast-util-gfm.mjs +0 -15
- package/dist/_chunks/libs/mdast-util-to-hast.mjs +0 -11
- package/dist/_chunks/libs/micromark-extension-gfm.mjs +0 -1
- package/dist/_chunks/libs/mnemonist.d.mts +0 -164
- package/dist/_chunks/libs/mnemonist.mjs +0 -1
- package/dist/_chunks/libs/natural-compare-lite.mjs +0 -9
- package/dist/_chunks/libs/ohash.mjs +0 -1
- package/dist/_chunks/libs/rehype-sanitize.mjs +0 -1
- package/dist/_chunks/libs/rehype-stringify.mjs +0 -1
- package/dist/_chunks/libs/remark-gfm.mjs +0 -1
- package/dist/_chunks/libs/remark-github-blockquote-alert.mjs +0 -3
- package/dist/_chunks/libs/remark-parse.mjs +0 -1
- package/dist/_chunks/libs/remark-rehype.mjs +0 -1
- package/dist/_chunks/libs/remeda.mjs +0 -2
- package/dist/_chunks/libs/trough.mjs +0 -1
- package/dist/_chunks/libs/unified.mjs +0 -1
- package/dist/_chunks/manual-layout.mjs +0 -1
- package/dist/_chunks/mnemonist.d.mts +0 -1
- package/dist/_chunks/model.mjs +0 -4
- package/dist/_chunks/rolldown-runtime.mjs +0 -1
- package/dist/_chunks/types.mjs +0 -1
- /package/dist/{_chunks → chunks}/libs/@radix-ui/colors.mjs +0 -0
|
@@ -1,3 +1,620 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as __name } from "../../chunks/rolldown-runtime.mjs";
|
|
2
2
|
import Graph from "graphology";
|
|
3
|
+
//#region ../../node_modules/.pnpm/graphology-types@0.24.8/node_modules/graphology-types/index.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Graphology Typings
|
|
6
|
+
* ===================
|
|
7
|
+
*
|
|
8
|
+
* Graphology TypeScript declaration.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Miscellaneous types.
|
|
12
|
+
*/
|
|
13
|
+
type Attributes = {
|
|
14
|
+
[name: string]: any;
|
|
15
|
+
};
|
|
16
|
+
type GraphType = 'mixed' | 'directed' | 'undirected';
|
|
17
|
+
type UpdateHints<ItemAttributes extends Attributes = Attributes> = {
|
|
18
|
+
attributes?: Array<keyof ItemAttributes>;
|
|
19
|
+
};
|
|
20
|
+
type GraphOptions = {
|
|
21
|
+
allowSelfLoops?: boolean;
|
|
22
|
+
multi?: boolean;
|
|
23
|
+
type?: GraphType;
|
|
24
|
+
};
|
|
25
|
+
type NodeEntry<NodeAttributes extends Attributes = Attributes> = {
|
|
26
|
+
node: string;
|
|
27
|
+
attributes: NodeAttributes;
|
|
28
|
+
};
|
|
29
|
+
type NodeMergeResult = [key: string, nodeWasAdded: boolean];
|
|
30
|
+
type NeighborEntry<NodeAttributes extends Attributes = Attributes> = {
|
|
31
|
+
neighbor: string;
|
|
32
|
+
attributes: NodeAttributes;
|
|
33
|
+
};
|
|
34
|
+
type EdgeEntry<NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes> = {
|
|
35
|
+
edge: string;
|
|
36
|
+
attributes: EdgeAttributes;
|
|
37
|
+
source: string;
|
|
38
|
+
target: string;
|
|
39
|
+
sourceAttributes: NodeAttributes;
|
|
40
|
+
targetAttributes: NodeAttributes;
|
|
41
|
+
undirected: boolean;
|
|
42
|
+
};
|
|
43
|
+
type EdgeMergeResult = [key: string, edgeWasAdded: boolean, sourceWasAdded: boolean, targetWasAdded: boolean];
|
|
44
|
+
type AdjacencyIterationCallback<NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes> = (node: string, neighbor: string, nodeAttributes: NodeAttributes, neighborAttributes: NodeAttributes, edge: string, edgeAttributes: EdgeAttributes, undirected: boolean) => void;
|
|
45
|
+
type AdjacencyIterationCallbackWithOrphans<NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes> = (node: string, neighbor: string | null, nodeAttributes: NodeAttributes, neighborAttributes: NodeAttributes | null, edge: string | null, edgeAttributes: EdgeAttributes | null, undirected: boolean | null) => void;
|
|
46
|
+
type NodeIterationCallback<NodeAttributes extends Attributes = Attributes> = (node: string, attributes: NodeAttributes) => void;
|
|
47
|
+
type NodePredicate<NodeAttributes extends Attributes = Attributes> = (node: string, attributes: NodeAttributes) => boolean | void;
|
|
48
|
+
type NodeMapper<T, NodeAttributes extends Attributes = Attributes> = (node: string, attributes: NodeAttributes) => T;
|
|
49
|
+
type NodeReducer<T, NodeAttributes extends Attributes = Attributes> = (accumulator: T, node: string, attributes: NodeAttributes) => T;
|
|
50
|
+
type NeighborIterationCallback<NodeAttributes extends Attributes = Attributes> = (neighbor: string, attributes: NodeAttributes) => void;
|
|
51
|
+
type NeighborPredicate<NodeAttributes extends Attributes = Attributes> = (neighbor: string, attributes: NodeAttributes) => boolean | void;
|
|
52
|
+
type NeighborMapper<T, NodeAttributes extends Attributes = Attributes> = (neighbor: string, attributes: NodeAttributes) => T;
|
|
53
|
+
type NeighborReducer<T, NodeAttributes extends Attributes = Attributes> = (accumulator: T, neighbor: string, attributes: NodeAttributes) => T;
|
|
54
|
+
type EdgeIterationCallback<NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes> = (edge: string, attributes: EdgeAttributes, source: string, target: string, sourceAttributes: NodeAttributes, targetAttributes: NodeAttributes, undirected: boolean) => void;
|
|
55
|
+
type EdgePredicate<NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes> = (edge: string, attributes: EdgeAttributes, source: string, target: string, sourceAttributes: NodeAttributes, targetAttributes: NodeAttributes, undirected: boolean) => boolean | void;
|
|
56
|
+
type EdgeMapper<T, NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes> = (edge: string, attributes: EdgeAttributes, source: string, target: string, sourceAttributes: NodeAttributes, targetAttributes: NodeAttributes, undirected: boolean) => T;
|
|
57
|
+
type EdgeReducer<T, NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes> = (accumulator: T, edge: string, attributes: EdgeAttributes, source: string, target: string, sourceAttributes: NodeAttributes, targetAttributes: NodeAttributes, undirected: boolean) => T;
|
|
58
|
+
type SerializedNode<NodeAttributes extends Attributes = Attributes> = {
|
|
59
|
+
key: string;
|
|
60
|
+
attributes?: NodeAttributes;
|
|
61
|
+
};
|
|
62
|
+
type SerializedEdge<EdgeAttributes extends Attributes = Attributes> = {
|
|
63
|
+
key?: string;
|
|
64
|
+
source: string;
|
|
65
|
+
target: string;
|
|
66
|
+
attributes?: EdgeAttributes;
|
|
67
|
+
undirected?: boolean;
|
|
68
|
+
};
|
|
69
|
+
type SerializedGraph<NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes, GraphAttributes extends Attributes = Attributes> = {
|
|
70
|
+
attributes: GraphAttributes;
|
|
71
|
+
options: GraphOptions;
|
|
72
|
+
nodes: Array<SerializedNode<NodeAttributes>>;
|
|
73
|
+
edges: Array<SerializedEdge<EdgeAttributes>>;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Event Emitter typings for convience.
|
|
77
|
+
* @note Taken from here: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/events/index.d.ts
|
|
78
|
+
*/
|
|
79
|
+
type Listener = (...args: any[]) => void;
|
|
80
|
+
type EventsMapping = Record<string, Listener>;
|
|
81
|
+
type AttributeUpdatePayload<ItemAttributes extends Attributes = Attributes> = {
|
|
82
|
+
type: 'set';
|
|
83
|
+
key: string;
|
|
84
|
+
attributes: ItemAttributes;
|
|
85
|
+
name: keyof ItemAttributes;
|
|
86
|
+
} | {
|
|
87
|
+
type: 'remove';
|
|
88
|
+
key: string;
|
|
89
|
+
attributes: ItemAttributes;
|
|
90
|
+
name: keyof ItemAttributes;
|
|
91
|
+
} | {
|
|
92
|
+
type: 'replace';
|
|
93
|
+
key: string;
|
|
94
|
+
attributes: ItemAttributes;
|
|
95
|
+
} | {
|
|
96
|
+
type: 'merge';
|
|
97
|
+
key: string;
|
|
98
|
+
attributes: ItemAttributes;
|
|
99
|
+
data: ItemAttributes;
|
|
100
|
+
} | {
|
|
101
|
+
type: 'update';
|
|
102
|
+
key: string;
|
|
103
|
+
attributes: ItemAttributes;
|
|
104
|
+
};
|
|
105
|
+
type GraphEvents<NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes, GraphAttributes extends Attributes = Attributes> = {
|
|
106
|
+
nodeAdded(payload: {
|
|
107
|
+
key: string;
|
|
108
|
+
attributes: NodeAttributes;
|
|
109
|
+
}): void;
|
|
110
|
+
edgeAdded(payload: {
|
|
111
|
+
key: string;
|
|
112
|
+
source: string;
|
|
113
|
+
target: string;
|
|
114
|
+
attributes: EdgeAttributes;
|
|
115
|
+
undirected: boolean;
|
|
116
|
+
}): void;
|
|
117
|
+
nodeDropped(payload: {
|
|
118
|
+
key: string;
|
|
119
|
+
attributes: NodeAttributes;
|
|
120
|
+
}): void;
|
|
121
|
+
edgeDropped(payload: {
|
|
122
|
+
key: string;
|
|
123
|
+
source: string;
|
|
124
|
+
target: string;
|
|
125
|
+
attributes: EdgeAttributes;
|
|
126
|
+
undirected: boolean;
|
|
127
|
+
}): void;
|
|
128
|
+
cleared(): void;
|
|
129
|
+
edgesCleared(): void;
|
|
130
|
+
attributesUpdated(payload: Omit<AttributeUpdatePayload<GraphAttributes>, 'key'>): void;
|
|
131
|
+
nodeAttributesUpdated(payload: AttributeUpdatePayload<NodeAttributes>): void;
|
|
132
|
+
edgeAttributesUpdated(payload: AttributeUpdatePayload<EdgeAttributes>): void;
|
|
133
|
+
eachNodeAttributesUpdated(payload: {
|
|
134
|
+
hints: UpdateHints<NodeAttributes>;
|
|
135
|
+
}): void;
|
|
136
|
+
eachEdgeAttributesUpdated(payload: {
|
|
137
|
+
hints: UpdateHints<EdgeAttributes>;
|
|
138
|
+
}): void;
|
|
139
|
+
};
|
|
140
|
+
declare class GraphEventEmitter<Events extends EventsMapping> {
|
|
141
|
+
static listenerCount<Events extends EventsMapping>(emitter: GraphEventEmitter<Events>, type: string | number): number;
|
|
142
|
+
static defaultMaxListeners: number;
|
|
143
|
+
eventNames<Event extends keyof Events>(): Array<Event>;
|
|
144
|
+
setMaxListeners(n: number): this;
|
|
145
|
+
getMaxListeners(): number;
|
|
146
|
+
emit<Event extends keyof Events>(type: Event, ...args: Parameters<Events[Event]>): boolean;
|
|
147
|
+
addListener<Event extends keyof Events>(type: Event, listener: Events[Event]): this;
|
|
148
|
+
on<Event extends keyof Events>(type: Event, listener: Events[Event]): this;
|
|
149
|
+
once<Event extends keyof Events>(type: Event, listener: Events[Event]): this;
|
|
150
|
+
prependListener<Event extends keyof Events>(type: Event, listener: Events[Event]): this;
|
|
151
|
+
prependOnceListener<Event extends keyof Events>(type: Event, listener: Events[Event]): this;
|
|
152
|
+
removeListener<Event extends keyof Events>(type: Event, listener: Events[Event]): this;
|
|
153
|
+
off<Event extends keyof Events>(type: Event, listener: Events[Event]): this;
|
|
154
|
+
removeAllListeners<Event extends keyof Events>(type?: Event): this;
|
|
155
|
+
listeners<Event extends keyof Events>(type: Event): Events[Event][];
|
|
156
|
+
listenerCount<Event extends keyof Events>(type: Event): number;
|
|
157
|
+
rawListeners<Event extends keyof Events>(type: Event): Events[Event][];
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Main interface.
|
|
161
|
+
*/
|
|
162
|
+
declare abstract class AbstractGraph<NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes, GraphAttributes extends Attributes = Attributes> extends GraphEventEmitter<GraphEvents<NodeAttributes, EdgeAttributes, GraphAttributes>> {
|
|
163
|
+
// Constructor
|
|
164
|
+
constructor(options?: GraphOptions);
|
|
165
|
+
// Members
|
|
166
|
+
order: number;
|
|
167
|
+
size: number;
|
|
168
|
+
directedSize: number;
|
|
169
|
+
undirectedSize: number;
|
|
170
|
+
type: GraphType;
|
|
171
|
+
multi: boolean;
|
|
172
|
+
allowSelfLoops: boolean;
|
|
173
|
+
implementation: string;
|
|
174
|
+
selfLoopCount: number;
|
|
175
|
+
directedSelfLoopCount: number;
|
|
176
|
+
undirectedSelfLoopCount: number;
|
|
177
|
+
// Read methods
|
|
178
|
+
hasNode(node: unknown): boolean;
|
|
179
|
+
hasDirectedEdge(edge: unknown): boolean;
|
|
180
|
+
hasDirectedEdge(source: unknown, target: unknown): boolean;
|
|
181
|
+
hasUndirectedEdge(edge: unknown): boolean;
|
|
182
|
+
hasUndirectedEdge(source: unknown, target: unknown): boolean;
|
|
183
|
+
hasEdge(edge: unknown): boolean;
|
|
184
|
+
hasEdge(source: unknown, target: unknown): boolean;
|
|
185
|
+
directedEdge(source: unknown, target: unknown): string | undefined;
|
|
186
|
+
undirectedEdge(source: unknown, target: unknown): string | undefined;
|
|
187
|
+
edge(source: unknown, target: unknown): string | undefined;
|
|
188
|
+
inDegree(node: unknown): number;
|
|
189
|
+
outDegree(node: unknown): number;
|
|
190
|
+
inboundDegree(node: unknown): number;
|
|
191
|
+
outboundDegree(node: unknown): number;
|
|
192
|
+
directedDegree(node: unknown): number;
|
|
193
|
+
undirectedDegree(node: unknown): number;
|
|
194
|
+
degree(node: unknown): number;
|
|
195
|
+
inDegreeWithoutSelfLoops(node: unknown): number;
|
|
196
|
+
outDegreeWithoutSelfLoops(node: unknown): number;
|
|
197
|
+
inboundDegreeWithoutSelfLoops(node: unknown): number;
|
|
198
|
+
outboundDegreeWithoutSelfLoops(node: unknown): number;
|
|
199
|
+
directedDegreeWithoutSelfLoops(node: unknown): number;
|
|
200
|
+
undirectedDegreeWithoutSelfLoops(node: unknown): number;
|
|
201
|
+
degreeWithoutSelfLoops(node: unknown): number;
|
|
202
|
+
source(edge: unknown): string;
|
|
203
|
+
target(edge: unknown): string;
|
|
204
|
+
extremities(edge: unknown): [string, string];
|
|
205
|
+
opposite(node: unknown, edge: unknown): string;
|
|
206
|
+
isUndirected(edge: unknown): boolean;
|
|
207
|
+
isDirected(edge: unknown): boolean;
|
|
208
|
+
isSelfLoop(edge: unknown): boolean;
|
|
209
|
+
hasExtremity(edge: unknown, node: unknown): boolean;
|
|
210
|
+
areNeighbors(source: unknown, target: unknown): boolean;
|
|
211
|
+
areUndirectedNeighbors(source: unknown, target: unknown): boolean;
|
|
212
|
+
areDirectedNeighbors(source: unknown, target: unknown): boolean;
|
|
213
|
+
areInNeighbors(source: unknown, target: unknown): boolean;
|
|
214
|
+
areOutNeighbors(source: unknown, target: unknown): boolean;
|
|
215
|
+
areInboundNeighbors(source: unknown, target: unknown): boolean;
|
|
216
|
+
areOutboundNeighbors(source: unknown, target: unknown): boolean;
|
|
217
|
+
// Mutation methods
|
|
218
|
+
addNode(node: unknown, attributes?: NodeAttributes): string;
|
|
219
|
+
mergeNode(node: unknown, attributes?: Partial<NodeAttributes>): NodeMergeResult;
|
|
220
|
+
updateNode(node: unknown, updater?: (attributes: Partial<NodeAttributes>) => NodeAttributes): NodeMergeResult;
|
|
221
|
+
addEdge(source: unknown, target: unknown, attributes?: EdgeAttributes): string;
|
|
222
|
+
mergeEdge(source: unknown, target: unknown, attributes?: Partial<EdgeAttributes>): EdgeMergeResult;
|
|
223
|
+
updateEdge(source: unknown, target: unknown, updater?: (attributes: Partial<EdgeAttributes>) => EdgeAttributes): EdgeMergeResult;
|
|
224
|
+
addDirectedEdge(source: unknown, target: unknown, attributes?: EdgeAttributes): string;
|
|
225
|
+
mergeDirectedEdge(source: unknown, target: unknown, attributes?: Partial<EdgeAttributes>): EdgeMergeResult;
|
|
226
|
+
updateDirectedEdge(source: unknown, target: unknown, updater?: (attributes: Partial<EdgeAttributes>) => EdgeAttributes): EdgeMergeResult;
|
|
227
|
+
addUndirectedEdge(source: unknown, target: unknown, attributes?: EdgeAttributes): string;
|
|
228
|
+
mergeUndirectedEdge(source: unknown, target: unknown, attributes?: Partial<EdgeAttributes>): EdgeMergeResult;
|
|
229
|
+
updateUndirectedEdge(source: unknown, target: unknown, updater?: (attributes: Partial<EdgeAttributes>) => EdgeAttributes): EdgeMergeResult;
|
|
230
|
+
addEdgeWithKey(edge: unknown, source: unknown, target: unknown, attributes?: EdgeAttributes): string;
|
|
231
|
+
mergeEdgeWithKey(edge: unknown, source: unknown, target: unknown, attributes?: Partial<EdgeAttributes>): EdgeMergeResult;
|
|
232
|
+
updateEdgeWithKey(edge: unknown, source: unknown, target: unknown, updater?: (attributes: Partial<EdgeAttributes>) => EdgeAttributes): EdgeMergeResult;
|
|
233
|
+
addDirectedEdgeWithKey(edge: unknown, source: unknown, target: unknown, attributes?: EdgeAttributes): string;
|
|
234
|
+
mergeDirectedEdgeWithKey(edge: unknown, source: unknown, target: unknown, attributes?: Partial<EdgeAttributes>): EdgeMergeResult;
|
|
235
|
+
updateDirectedEdgeWithKey(edge: unknown, source: unknown, target: unknown, updater?: (attributes: Partial<EdgeAttributes>) => EdgeAttributes): EdgeMergeResult;
|
|
236
|
+
addUndirectedEdgeWithKey(edge: unknown, source: unknown, target: unknown, attributes?: EdgeAttributes): string;
|
|
237
|
+
mergeUndirectedEdgeWithKey(edge: unknown, source: unknown, target: unknown, attributes?: Partial<EdgeAttributes>): EdgeMergeResult;
|
|
238
|
+
updateUndirectedEdgeWithKey(edge: unknown, source: unknown, target: unknown, updater?: (attributes: Partial<EdgeAttributes>) => EdgeAttributes): EdgeMergeResult;
|
|
239
|
+
dropNode(node: unknown): void;
|
|
240
|
+
dropEdge(edge: unknown): void;
|
|
241
|
+
dropEdge(source: unknown, target: unknown): void;
|
|
242
|
+
dropDirectedEdge(source: unknown, target: unknown): void;
|
|
243
|
+
dropUndirectedEdge(source: unknown, target: unknown): void;
|
|
244
|
+
clear(): void;
|
|
245
|
+
clearEdges(): void;
|
|
246
|
+
// Graph attribute methods
|
|
247
|
+
getAttribute<AttributeName extends keyof GraphAttributes>(name: AttributeName): GraphAttributes[AttributeName];
|
|
248
|
+
getAttributes(): GraphAttributes;
|
|
249
|
+
hasAttribute<AttributeName extends keyof GraphAttributes>(name: AttributeName): boolean;
|
|
250
|
+
setAttribute<AttributeName extends keyof GraphAttributes>(name: AttributeName, value: GraphAttributes[AttributeName]): this;
|
|
251
|
+
updateAttribute<AttributeName extends keyof GraphAttributes>(name: AttributeName, updater: (value: GraphAttributes[AttributeName] | undefined) => GraphAttributes[AttributeName]): this;
|
|
252
|
+
removeAttribute<AttributeName extends keyof GraphAttributes>(name: AttributeName): this;
|
|
253
|
+
replaceAttributes(attributes: GraphAttributes): this;
|
|
254
|
+
mergeAttributes(attributes: Partial<GraphAttributes>): this;
|
|
255
|
+
updateAttributes(updater: (attributes: GraphAttributes) => GraphAttributes): this;
|
|
256
|
+
// Node attribute methods
|
|
257
|
+
getNodeAttribute<AttributeName extends keyof NodeAttributes>(node: unknown, name: AttributeName): NodeAttributes[AttributeName];
|
|
258
|
+
getNodeAttributes(node: unknown): NodeAttributes;
|
|
259
|
+
hasNodeAttribute<AttributeName extends keyof NodeAttributes>(node: unknown, name: AttributeName): boolean;
|
|
260
|
+
setNodeAttribute<AttributeName extends keyof NodeAttributes>(node: unknown, name: AttributeName, value: NodeAttributes[AttributeName]): this;
|
|
261
|
+
updateNodeAttribute<AttributeName extends keyof NodeAttributes>(node: unknown, name: AttributeName, updater: (value: NodeAttributes[AttributeName] | undefined) => NodeAttributes[AttributeName]): this;
|
|
262
|
+
removeNodeAttribute<AttributeName extends keyof NodeAttributes>(node: unknown, name: AttributeName): this;
|
|
263
|
+
replaceNodeAttributes(node: unknown, attributes: NodeAttributes): this;
|
|
264
|
+
mergeNodeAttributes(node: unknown, attributes: Partial<NodeAttributes>): this;
|
|
265
|
+
updateNodeAttributes(node: unknown, updater: (attributes: NodeAttributes) => NodeAttributes): this;
|
|
266
|
+
getSourceAttribute<AttributeName extends keyof NodeAttributes>(edge: unknown, name: AttributeName): NodeAttributes[AttributeName];
|
|
267
|
+
getSourceAttributes(edge: unknown): NodeAttributes;
|
|
268
|
+
hasSourceAttribute<AttributeName extends keyof NodeAttributes>(edge: unknown, name: AttributeName): boolean;
|
|
269
|
+
setSourceAttribute<AttributeName extends keyof NodeAttributes>(edge: unknown, name: AttributeName, value: NodeAttributes[AttributeName]): this;
|
|
270
|
+
updateSourceAttribute<AttributeName extends keyof NodeAttributes>(edge: unknown, name: AttributeName, updater: (value: NodeAttributes[AttributeName] | undefined) => NodeAttributes[AttributeName]): this;
|
|
271
|
+
removeSourceAttribute<AttributeName extends keyof NodeAttributes>(edge: unknown, name: AttributeName): this;
|
|
272
|
+
replaceSourceAttributes(edge: unknown, attributes: NodeAttributes): this;
|
|
273
|
+
mergeSourceAttributes(edge: unknown, attributes: Partial<NodeAttributes>): this;
|
|
274
|
+
updateSourceAttributes(edge: unknown, updater: (attributes: NodeAttributes) => NodeAttributes): this;
|
|
275
|
+
getTargetAttribute<AttributeName extends keyof NodeAttributes>(edge: unknown, name: AttributeName): NodeAttributes[AttributeName];
|
|
276
|
+
getTargetAttributes(edge: unknown): NodeAttributes;
|
|
277
|
+
hasTargetAttribute<AttributeName extends keyof NodeAttributes>(edge: unknown, name: AttributeName): boolean;
|
|
278
|
+
setTargetAttribute<AttributeName extends keyof NodeAttributes>(edge: unknown, name: AttributeName, value: NodeAttributes[AttributeName]): this;
|
|
279
|
+
updateTargetAttribute<AttributeName extends keyof NodeAttributes>(edge: unknown, name: AttributeName, updater: (value: NodeAttributes[AttributeName] | undefined) => NodeAttributes[AttributeName]): this;
|
|
280
|
+
removeTargetAttribute<AttributeName extends keyof NodeAttributes>(edge: unknown, name: AttributeName): this;
|
|
281
|
+
replaceTargetAttributes(edge: unknown, attributes: NodeAttributes): this;
|
|
282
|
+
mergeTargetAttributes(edge: unknown, attributes: Partial<NodeAttributes>): this;
|
|
283
|
+
updateTargetAttributes(edge: unknown, updater: (attributes: NodeAttributes) => NodeAttributes): this;
|
|
284
|
+
getOppositeAttribute<AttributeName extends keyof NodeAttributes>(node: unknown, edge: unknown, name: AttributeName): NodeAttributes[AttributeName];
|
|
285
|
+
getOppositeAttributes(node: unknown): NodeAttributes;
|
|
286
|
+
hasOppositeAttribute<AttributeName extends keyof NodeAttributes>(node: unknown, edge: unknown, name: AttributeName): boolean;
|
|
287
|
+
setOppositeAttribute<AttributeName extends keyof NodeAttributes>(node: unknown, edge: unknown, name: AttributeName, value: NodeAttributes[AttributeName]): this;
|
|
288
|
+
updateOppositeAttribute<AttributeName extends keyof NodeAttributes>(node: unknown, edge: unknown, name: AttributeName, updater: (value: NodeAttributes[AttributeName] | undefined) => NodeAttributes[AttributeName]): this;
|
|
289
|
+
removeOppositeAttribute<AttributeName extends keyof NodeAttributes>(node: unknown, edge: unknown, name: AttributeName): this;
|
|
290
|
+
replaceOppositeAttributes(node: unknown, edge: unknown, attributes: NodeAttributes): this;
|
|
291
|
+
mergeOppositeAttributes(node: unknown, edge: unknown, attributes: Partial<NodeAttributes>): this;
|
|
292
|
+
updateOppositeAttributes(node: unknown, edge: unknown, updater: (attributes: NodeAttributes) => NodeAttributes): this;
|
|
293
|
+
updateEachNodeAttributes(updater: NodeMapper<NodeAttributes, NodeAttributes>, hints?: UpdateHints<NodeAttributes>): void;
|
|
294
|
+
// Edge attribute methods
|
|
295
|
+
getEdgeAttribute<AttributeName extends keyof EdgeAttributes>(edge: unknown, name: AttributeName): EdgeAttributes[AttributeName];
|
|
296
|
+
getEdgeAttributes(edge: unknown): EdgeAttributes;
|
|
297
|
+
hasEdgeAttribute<AttributeName extends keyof EdgeAttributes>(edge: unknown, name: AttributeName): boolean;
|
|
298
|
+
setEdgeAttribute<AttributeName extends keyof EdgeAttributes>(edge: unknown, name: AttributeName, value: EdgeAttributes[AttributeName]): this;
|
|
299
|
+
updateEdgeAttribute<AttributeName extends keyof EdgeAttributes>(edge: unknown, name: AttributeName, updater: (value: EdgeAttributes[AttributeName] | undefined) => EdgeAttributes[AttributeName]): this;
|
|
300
|
+
removeEdgeAttribute<AttributeName extends keyof EdgeAttributes>(edge: unknown, name: AttributeName): this;
|
|
301
|
+
replaceEdgeAttributes(edge: unknown, attributes: EdgeAttributes): this;
|
|
302
|
+
mergeEdgeAttributes(edge: unknown, attributes: Partial<EdgeAttributes>): this;
|
|
303
|
+
updateEdgeAttributes(edge: unknown, updater: (attributes: EdgeAttributes) => EdgeAttributes): this;
|
|
304
|
+
updateEachEdgeAttributes(updater: EdgeMapper<EdgeAttributes, NodeAttributes, EdgeAttributes>, hints?: UpdateHints<EdgeAttributes>): void;
|
|
305
|
+
// Edge attribute methods (source, target)
|
|
306
|
+
getEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName): EdgeAttributes[AttributeName];
|
|
307
|
+
getEdgeAttributes(source: unknown, target: unknown): EdgeAttributes;
|
|
308
|
+
hasEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName): boolean;
|
|
309
|
+
setEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName, value: EdgeAttributes[AttributeName]): this;
|
|
310
|
+
updateEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName, updater: (value: EdgeAttributes[AttributeName] | undefined) => EdgeAttributes[AttributeName]): this;
|
|
311
|
+
removeEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName): this;
|
|
312
|
+
replaceEdgeAttributes(source: unknown, target: unknown, attributes: EdgeAttributes): this;
|
|
313
|
+
mergeEdgeAttributes(source: unknown, target: unknown, attributes: Partial<EdgeAttributes>): this;
|
|
314
|
+
updateEdgeAttributes(source: unknown, target: unknown, updater: (attributes: EdgeAttributes) => EdgeAttributes): this;
|
|
315
|
+
getDirectedEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName): EdgeAttributes[AttributeName];
|
|
316
|
+
getDirectedEdgeAttributes(source: unknown, target: unknown): EdgeAttributes;
|
|
317
|
+
hasDirectedEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName): boolean;
|
|
318
|
+
setDirectedEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName, value: EdgeAttributes[AttributeName]): this;
|
|
319
|
+
updateDirectedEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName, updater: (value: EdgeAttributes[AttributeName] | undefined) => EdgeAttributes[AttributeName]): this;
|
|
320
|
+
removeDirectedEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName): this;
|
|
321
|
+
replaceDirectedEdgeAttributes(source: unknown, target: unknown, attributes: EdgeAttributes): this;
|
|
322
|
+
mergeDirectedEdgeAttributes(source: unknown, target: unknown, attributes: Partial<EdgeAttributes>): this;
|
|
323
|
+
updateDirectedEdgeAttributes(source: unknown, target: unknown, updater: (attributes: EdgeAttributes) => EdgeAttributes): this;
|
|
324
|
+
getUndirectedEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName): EdgeAttributes[AttributeName];
|
|
325
|
+
getUndirectedEdgeAttributes(source: unknown, target: unknown): EdgeAttributes;
|
|
326
|
+
hasUndirectedEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName): boolean;
|
|
327
|
+
setUndirectedEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName, value: EdgeAttributes[AttributeName]): this;
|
|
328
|
+
updateUndirectedEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName, updater: (value: EdgeAttributes[AttributeName] | undefined) => EdgeAttributes[AttributeName]): this;
|
|
329
|
+
removeUndirectedEdgeAttribute<AttributeName extends keyof EdgeAttributes>(source: unknown, target: unknown, name: AttributeName): this;
|
|
330
|
+
replaceUndirectedEdgeAttributes(source: unknown, target: unknown, attributes: EdgeAttributes): this;
|
|
331
|
+
mergeUndirectedEdgeAttributes(source: unknown, target: unknown, attributes: Partial<EdgeAttributes>): this;
|
|
332
|
+
updateUndirectedEdgeAttributes(source: unknown, target: unknown, updater: (attributes: EdgeAttributes) => EdgeAttributes): this;
|
|
333
|
+
// Iteration methods
|
|
334
|
+
forEachAdjacencyEntry(callback: AdjacencyIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
335
|
+
forEachAssymetricAdjacencyEntry(callback: AdjacencyIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
336
|
+
forEachAdjacencyEntryWithOrphans(callback: AdjacencyIterationCallbackWithOrphans<NodeAttributes, EdgeAttributes>): void;
|
|
337
|
+
forEachAssymetricAdjacencyEntryWithOrphans(callback: AdjacencyIterationCallbackWithOrphans<NodeAttributes, EdgeAttributes>): void;
|
|
338
|
+
nodes(): Array<string>;
|
|
339
|
+
forEachNode(callback: NodeIterationCallback<NodeAttributes>): void;
|
|
340
|
+
mapNodes<T>(callback: NodeMapper<T, NodeAttributes>): Array<T>;
|
|
341
|
+
filterNodes(callback: NodePredicate<NodeAttributes>): Array<string>;
|
|
342
|
+
reduceNodes<T>(callback: NodeReducer<T, NodeAttributes>, initialValue: T): T;
|
|
343
|
+
findNode(callback: NodePredicate<NodeAttributes>): string | undefined;
|
|
344
|
+
someNode(callback: NodePredicate<NodeAttributes>): boolean;
|
|
345
|
+
everyNode(callback: NodePredicate<NodeAttributes>): boolean;
|
|
346
|
+
nodeEntries(): IterableIterator<NodeEntry<NodeAttributes>>;
|
|
347
|
+
edges(): Array<string>;
|
|
348
|
+
edges(node: unknown): Array<string>;
|
|
349
|
+
edges(source: unknown, target: unknown): Array<string>;
|
|
350
|
+
undirectedEdges(): Array<string>;
|
|
351
|
+
undirectedEdges(node: unknown): Array<string>;
|
|
352
|
+
undirectedEdges(source: unknown, target: unknown): Array<string>;
|
|
353
|
+
directedEdges(): Array<string>;
|
|
354
|
+
directedEdges(node: unknown): Array<string>;
|
|
355
|
+
directedEdges(source: unknown, target: unknown): Array<string>;
|
|
356
|
+
inEdges(): Array<string>;
|
|
357
|
+
inEdges(node: unknown): Array<string>;
|
|
358
|
+
inEdges(source: unknown, target: unknown): Array<string>;
|
|
359
|
+
outEdges(): Array<string>;
|
|
360
|
+
outEdges(node: unknown): Array<string>;
|
|
361
|
+
outEdges(source: unknown, target: unknown): Array<string>;
|
|
362
|
+
inboundEdges(): Array<string>;
|
|
363
|
+
inboundEdges(node: unknown): Array<string>;
|
|
364
|
+
inboundEdges(source: unknown, target: unknown): Array<string>;
|
|
365
|
+
outboundEdges(): Array<string>;
|
|
366
|
+
outboundEdges(node: unknown): Array<string>;
|
|
367
|
+
outboundEdges(source: unknown, target: unknown): Array<string>;
|
|
368
|
+
forEachEdge(callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
369
|
+
forEachEdge(node: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
370
|
+
forEachEdge(source: unknown, target: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
371
|
+
forEachUndirectedEdge(callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
372
|
+
forEachUndirectedEdge(node: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
373
|
+
forEachUndirectedEdge(source: unknown, target: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
374
|
+
forEachDirectedEdge(callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
375
|
+
forEachDirectedEdge(node: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
376
|
+
forEachDirectedEdge(source: unknown, target: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
377
|
+
forEachInEdge(callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
378
|
+
forEachInEdge(node: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
379
|
+
forEachInEdge(source: unknown, target: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
380
|
+
forEachOutEdge(callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
381
|
+
forEachOutEdge(node: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
382
|
+
forEachOutEdge(source: unknown, target: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
383
|
+
forEachInboundEdge(callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
384
|
+
forEachInboundEdge(node: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
385
|
+
forEachInboundEdge(source: unknown, target: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
386
|
+
forEachOutboundEdge(callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
387
|
+
forEachOutboundEdge(node: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
388
|
+
forEachOutboundEdge(source: unknown, target: unknown, callback: EdgeIterationCallback<NodeAttributes, EdgeAttributes>): void;
|
|
389
|
+
mapEdges<T>(callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
390
|
+
mapEdges<T>(node: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
391
|
+
mapEdges<T>(source: unknown, target: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
392
|
+
mapUndirectedEdges<T>(callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
393
|
+
mapUndirectedEdges<T>(node: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
394
|
+
mapUndirectedEdges<T>(source: unknown, target: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
395
|
+
mapDirectedEdges<T>(callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
396
|
+
mapDirectedEdges<T>(node: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
397
|
+
mapDirectedEdges<T>(source: unknown, target: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
398
|
+
mapInEdges<T>(callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
399
|
+
mapInEdges<T>(node: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
400
|
+
mapInEdges<T>(source: unknown, target: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
401
|
+
mapOutEdges<T>(callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
402
|
+
mapOutEdges<T>(node: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
403
|
+
mapOutEdges<T>(source: unknown, target: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
404
|
+
mapInboundEdges<T>(callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
405
|
+
mapInboundEdges<T>(node: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
406
|
+
mapInboundEdges<T>(source: unknown, target: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
407
|
+
mapOutboundEdges<T>(callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
408
|
+
mapOutboundEdges<T>(node: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
409
|
+
mapOutboundEdges<T>(source: unknown, target: unknown, callback: EdgeMapper<T, NodeAttributes, EdgeAttributes>): Array<T>;
|
|
410
|
+
filterEdges(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
411
|
+
filterEdges(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
412
|
+
filterEdges(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
413
|
+
filterUndirectedEdges(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
414
|
+
filterUndirectedEdges(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
415
|
+
filterUndirectedEdges(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
416
|
+
filterDirectedEdges(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
417
|
+
filterDirectedEdges(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
418
|
+
filterDirectedEdges(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
419
|
+
filterInEdges(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
420
|
+
filterInEdges(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
421
|
+
filterInEdges(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
422
|
+
filterOutEdges(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
423
|
+
filterOutEdges(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
424
|
+
filterOutEdges(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
425
|
+
filterInboundEdges(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
426
|
+
filterInboundEdges(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
427
|
+
filterInboundEdges(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
428
|
+
filterOutboundEdges(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
429
|
+
filterOutboundEdges(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
430
|
+
filterOutboundEdges(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): Array<string>;
|
|
431
|
+
reduceEdges<T>(callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
432
|
+
reduceEdges<T>(node: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
433
|
+
reduceEdges<T>(source: unknown, target: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
434
|
+
reduceUndirectedEdges<T>(callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
435
|
+
reduceUndirectedEdges<T>(node: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
436
|
+
reduceUndirectedEdges<T>(source: unknown, target: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
437
|
+
reduceDirectedEdges<T>(callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
438
|
+
reduceDirectedEdges<T>(node: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
439
|
+
reduceDirectedEdges<T>(source: unknown, target: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
440
|
+
reduceInEdges<T>(callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
441
|
+
reduceInEdges<T>(node: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
442
|
+
reduceInEdges<T>(source: unknown, target: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
443
|
+
reduceOutEdges<T>(callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
444
|
+
reduceOutEdges<T>(node: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
445
|
+
reduceOutEdges<T>(source: unknown, target: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
446
|
+
reduceInboundEdges<T>(callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
447
|
+
reduceInboundEdges<T>(node: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
448
|
+
reduceInboundEdges<T>(source: unknown, target: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
449
|
+
reduceOutboundEdges<T>(callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
450
|
+
reduceOutboundEdges<T>(node: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
451
|
+
reduceOutboundEdges<T>(source: unknown, target: unknown, callback: EdgeReducer<T, NodeAttributes, EdgeAttributes>, initialValue: T): T;
|
|
452
|
+
findEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
453
|
+
findEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
454
|
+
findEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
455
|
+
findUndirectedEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
456
|
+
findUndirectedEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
457
|
+
findUndirectedEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
458
|
+
findDirectedEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
459
|
+
findDirectedEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
460
|
+
findDirectedEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
461
|
+
findInEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
462
|
+
findInEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
463
|
+
findInEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
464
|
+
findOutEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
465
|
+
findOutEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
466
|
+
findOutEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
467
|
+
findInboundEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
468
|
+
findInboundEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
469
|
+
findInboundEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
470
|
+
findOutboundEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
471
|
+
findOutboundEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
472
|
+
findOutboundEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): string | undefined;
|
|
473
|
+
someEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
474
|
+
someEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
475
|
+
someEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
476
|
+
someUndirectedEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
477
|
+
someUndirectedEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
478
|
+
someUndirectedEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
479
|
+
someDirectedEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
480
|
+
someDirectedEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
481
|
+
someDirectedEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
482
|
+
someInEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
483
|
+
someInEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
484
|
+
someInEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
485
|
+
someOutEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
486
|
+
someOutEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
487
|
+
someOutEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
488
|
+
someInboundEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
489
|
+
someInboundEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
490
|
+
someInboundEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
491
|
+
someOutboundEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
492
|
+
someOutboundEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
493
|
+
someOutboundEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
494
|
+
everyEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
495
|
+
everyEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
496
|
+
everyEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
497
|
+
everyUndirectedEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
498
|
+
everyUndirectedEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
499
|
+
everyUndirectedEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
500
|
+
everyDirectedEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
501
|
+
everyDirectedEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
502
|
+
everyDirectedEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
503
|
+
everyInEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
504
|
+
everyInEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
505
|
+
everyInEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
506
|
+
everyOutEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
507
|
+
everyOutEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
508
|
+
everyOutEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
509
|
+
everyInboundEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
510
|
+
everyInboundEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
511
|
+
everyInboundEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
512
|
+
everyOutboundEdge(callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
513
|
+
everyOutboundEdge(node: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
514
|
+
everyOutboundEdge(source: unknown, target: unknown, callback: EdgePredicate<NodeAttributes, EdgeAttributes>): boolean;
|
|
515
|
+
edgeEntries(): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
516
|
+
edgeEntries(node: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
517
|
+
edgeEntries(source: unknown, target: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
518
|
+
undirectedEdgeEntries(): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
519
|
+
undirectedEdgeEntries(node: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
520
|
+
undirectedEdgeEntries(source: unknown, target: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
521
|
+
directedEdgeEntries(): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
522
|
+
directedEdgeEntries(node: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
523
|
+
directedEdgeEntries(source: unknown, target: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
524
|
+
inEdgeEntries(): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
525
|
+
inEdgeEntries(node: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
526
|
+
inEdgeEntries(source: unknown, target: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
527
|
+
outEdgeEntries(): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
528
|
+
outEdgeEntries(node: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
529
|
+
outEdgeEntries(source: unknown, target: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
530
|
+
inboundEdgeEntries(): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
531
|
+
inboundEdgeEntries(node: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
532
|
+
inboundEdgeEntries(source: unknown, target: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
533
|
+
outboundEdgeEntries(): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
534
|
+
outboundEdgeEntries(node: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
535
|
+
outboundEdgeEntries(source: unknown, target: unknown): IterableIterator<EdgeEntry<NodeAttributes, EdgeAttributes>>;
|
|
536
|
+
neighbors(node: unknown): Array<string>;
|
|
537
|
+
undirectedNeighbors(node: unknown): Array<string>;
|
|
538
|
+
directedNeighbors(node: unknown): Array<string>;
|
|
539
|
+
inNeighbors(node: unknown): Array<string>;
|
|
540
|
+
outNeighbors(node: unknown): Array<string>;
|
|
541
|
+
inboundNeighbors(node: unknown): Array<string>;
|
|
542
|
+
outboundNeighbors(node: unknown): Array<string>;
|
|
543
|
+
forEachNeighbor(node: unknown, callback: NeighborIterationCallback<NodeAttributes>): void;
|
|
544
|
+
forEachUndirectedNeighbor(node: unknown, callback: NeighborIterationCallback<NodeAttributes>): void;
|
|
545
|
+
forEachDirectedNeighbor(node: unknown, callback: NeighborIterationCallback<NodeAttributes>): void;
|
|
546
|
+
forEachInNeighbor(node: unknown, callback: NeighborIterationCallback<NodeAttributes>): void;
|
|
547
|
+
forEachOutNeighbor(node: unknown, callback: NeighborIterationCallback<NodeAttributes>): void;
|
|
548
|
+
forEachInboundNeighbor(node: unknown, callback: NeighborIterationCallback<NodeAttributes>): void;
|
|
549
|
+
forEachOutboundNeighbor(node: unknown, callback: NeighborIterationCallback<NodeAttributes>): void;
|
|
550
|
+
mapNeighbors<T>(node: unknown, callback: NeighborMapper<T, NodeAttributes>): Array<T>;
|
|
551
|
+
mapUndirectedNeighbors<T>(node: unknown, callback: NeighborMapper<T, NodeAttributes>): Array<T>;
|
|
552
|
+
mapDirectedNeighbors<T>(node: unknown, callback: NeighborMapper<T, NodeAttributes>): Array<T>;
|
|
553
|
+
mapInNeighbors<T>(node: unknown, callback: NeighborMapper<T, NodeAttributes>): Array<T>;
|
|
554
|
+
mapOutNeighbors<T>(node: unknown, callback: NeighborMapper<T, NodeAttributes>): Array<T>;
|
|
555
|
+
mapInboundNeighbors<T>(node: unknown, callback: NeighborMapper<T, NodeAttributes>): Array<T>;
|
|
556
|
+
mapOutboundNeighbors<T>(node: unknown, callback: NeighborMapper<T, NodeAttributes>): Array<T>;
|
|
557
|
+
filterNeighbors(node: unknown, callback: NeighborPredicate<NodeAttributes>): Array<string>;
|
|
558
|
+
filterUndirectedNeighbors(node: unknown, callback: NeighborPredicate<NodeAttributes>): Array<string>;
|
|
559
|
+
filterDirectedNeighbors(node: unknown, callback: NeighborPredicate<NodeAttributes>): Array<string>;
|
|
560
|
+
filterInNeighbors(node: unknown, callback: NeighborPredicate<NodeAttributes>): Array<string>;
|
|
561
|
+
filterOutNeighbors(node: unknown, callback: NeighborPredicate<NodeAttributes>): Array<string>;
|
|
562
|
+
filterInboundNeighbors(node: unknown, callback: NeighborPredicate<NodeAttributes>): Array<string>;
|
|
563
|
+
filterOutboundNeighbors(node: unknown, callback: NeighborPredicate<NodeAttributes>): Array<string>;
|
|
564
|
+
reduceNeighbors<T>(node: unknown, callback: NeighborReducer<T, NodeAttributes>, initialValue: T): T;
|
|
565
|
+
reduceUndirectedNeighbors<T>(node: unknown, callback: NeighborReducer<T, NodeAttributes>, initialValue: T): T;
|
|
566
|
+
reduceDirectedNeighbors<T>(node: unknown, callback: NeighborReducer<T, NodeAttributes>, initialValue: T): T;
|
|
567
|
+
reduceInNeighbors<T>(node: unknown, callback: NeighborReducer<T, NodeAttributes>, initialValue: T): T;
|
|
568
|
+
reduceOutNeighbors<T>(node: unknown, callback: NeighborReducer<T, NodeAttributes>, initialValue: T): T;
|
|
569
|
+
reduceInboundNeighbors<T>(node: unknown, callback: NeighborReducer<T, NodeAttributes>, initialValue: T): T;
|
|
570
|
+
reduceOutboundNeighbors<T>(node: unknown, callback: NeighborReducer<T, NodeAttributes>, initialValue: T): T;
|
|
571
|
+
findNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): string | undefined;
|
|
572
|
+
findUndirectedNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): string | undefined;
|
|
573
|
+
findDirectedNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): string | undefined;
|
|
574
|
+
findInNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): string | undefined;
|
|
575
|
+
findOutNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): string | undefined;
|
|
576
|
+
findInboundNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): string | undefined;
|
|
577
|
+
findOutboundNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): string | undefined;
|
|
578
|
+
someNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
579
|
+
someUndirectedNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
580
|
+
someDirectedNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
581
|
+
someInNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
582
|
+
someOutNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
583
|
+
someInboundNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
584
|
+
someOutboundNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
585
|
+
everyNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
586
|
+
everyUndirectedNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
587
|
+
everyDirectedNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
588
|
+
everyInNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
589
|
+
everyOutNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
590
|
+
everyInboundNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
591
|
+
everyOutboundNeighbor(node: unknown, callback: NeighborPredicate<NodeAttributes>): boolean;
|
|
592
|
+
neighborEntries(node: unknown): IterableIterator<NeighborEntry<NodeAttributes>>;
|
|
593
|
+
undirectedNeighborEntries(node: unknown): IterableIterator<NeighborEntry<NodeAttributes>>;
|
|
594
|
+
directedNeighborEntries(node: unknown): IterableIterator<NeighborEntry<NodeAttributes>>;
|
|
595
|
+
inNeighborEntries(node: unknown): IterableIterator<NeighborEntry<NodeAttributes>>;
|
|
596
|
+
outNeighborEntries(node: unknown): IterableIterator<NeighborEntry<NodeAttributes>>;
|
|
597
|
+
inboundNeighborEntries(node: unknown): IterableIterator<NeighborEntry<NodeAttributes>>;
|
|
598
|
+
outboundNeighborEntries(node: unknown): IterableIterator<NeighborEntry<NodeAttributes>>;
|
|
599
|
+
// Serialization methods
|
|
600
|
+
export(): SerializedGraph<NodeAttributes, EdgeAttributes, GraphAttributes>;
|
|
601
|
+
import(data: Partial<SerializedGraph<NodeAttributes, EdgeAttributes, GraphAttributes>>, merge?: boolean): this;
|
|
602
|
+
import(graph: AbstractGraph<NodeAttributes, EdgeAttributes, GraphAttributes>, merge?: boolean): this;
|
|
603
|
+
// Utils
|
|
604
|
+
nullCopy(options?: Partial<GraphOptions>): AbstractGraph<NodeAttributes, EdgeAttributes, GraphAttributes>;
|
|
605
|
+
emptyCopy(options?: Partial<GraphOptions>): AbstractGraph<NodeAttributes, EdgeAttributes, GraphAttributes>;
|
|
606
|
+
copy(options?: Partial<GraphOptions>): AbstractGraph<NodeAttributes, EdgeAttributes, GraphAttributes>;
|
|
607
|
+
// Well-known methods
|
|
608
|
+
toJSON(): SerializedGraph<NodeAttributes, EdgeAttributes, GraphAttributes>;
|
|
609
|
+
toString(): string;
|
|
610
|
+
inspect(): any;
|
|
611
|
+
static from<NA extends Attributes = Attributes, EA extends Attributes = Attributes, GA extends Attributes = Attributes>(data: SerializedGraph<NA, EA, GA> | AbstractGraph<NA, EA, GA>, options?: GraphOptions): AbstractGraph<NA, EA, GA>;
|
|
612
|
+
}
|
|
613
|
+
//#endregion
|
|
614
|
+
//#region ../../node_modules/.pnpm/graphology-dag@0.4.1_graphology-types@0.24.8/node_modules/graphology-dag/topological-sort.d.ts
|
|
615
|
+
declare function topologicalSort(graph: AbstractGraph): Array<string>;
|
|
616
|
+
//#endregion
|
|
617
|
+
//#region ../../node_modules/.pnpm/graphology-dag@0.4.1_graphology-types@0.24.8/node_modules/graphology-dag/will-create-cycle.d.ts
|
|
618
|
+
declare function willCreateCycle(graph: AbstractGraph, source: unknown, target: unknown): boolean;
|
|
619
|
+
//#endregion
|
|
3
620
|
export { Graph, topologicalSort, willCreateCycle };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{i as e}from"../../chunks/rolldown-runtime.mjs";import{n as t,t as n}from"../../chunks/libs/graphology-dag.mjs";import{t as r}from"../../chunks/libs/graphology.mjs";var i=t(),a=e(n(),1),o=i.topologicalSort,s=a.default;export{r as Graph,a as n,i as t,o as topologicalSort,s as willCreateCycle};
|