data-structure-typed 2.6.0 → 2.6.2

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.
Files changed (160) hide show
  1. package/.github/workflows/ci.yml +7 -2
  2. package/.github/workflows/release-package.yml +9 -2
  3. package/CHANGELOG.md +9 -1
  4. package/dist/cjs/binary-tree.cjs +2927 -23688
  5. package/dist/cjs/graph.cjs +845 -2634
  6. package/dist/cjs/hash.cjs +185 -616
  7. package/dist/cjs/heap.cjs +266 -818
  8. package/dist/cjs/index.cjs +5116 -31358
  9. package/dist/cjs/linked-list.cjs +644 -2615
  10. package/dist/cjs/matrix.cjs +220 -535
  11. package/dist/cjs/priority-queue.cjs +266 -818
  12. package/dist/cjs/queue.cjs +637 -2343
  13. package/dist/cjs/stack.cjs +124 -530
  14. package/dist/cjs/trie.cjs +145 -592
  15. package/dist/cjs-legacy/binary-tree.cjs +4352 -25113
  16. package/dist/cjs-legacy/graph.cjs +847 -2636
  17. package/dist/cjs-legacy/hash.cjs +181 -612
  18. package/dist/cjs-legacy/heap.cjs +266 -818
  19. package/dist/cjs-legacy/index.cjs +6657 -32899
  20. package/dist/cjs-legacy/linked-list.cjs +640 -2611
  21. package/dist/cjs-legacy/matrix.cjs +220 -535
  22. package/dist/cjs-legacy/priority-queue.cjs +266 -818
  23. package/dist/cjs-legacy/queue.cjs +634 -2340
  24. package/dist/cjs-legacy/stack.cjs +124 -530
  25. package/dist/cjs-legacy/trie.cjs +145 -592
  26. package/dist/esm/binary-tree.mjs +2927 -23688
  27. package/dist/esm/graph.mjs +845 -2634
  28. package/dist/esm/hash.mjs +185 -616
  29. package/dist/esm/heap.mjs +266 -818
  30. package/dist/esm/index.mjs +5116 -31358
  31. package/dist/esm/linked-list.mjs +644 -2615
  32. package/dist/esm/matrix.mjs +220 -535
  33. package/dist/esm/priority-queue.mjs +266 -818
  34. package/dist/esm/queue.mjs +637 -2343
  35. package/dist/esm/stack.mjs +124 -530
  36. package/dist/esm/trie.mjs +145 -592
  37. package/dist/esm-legacy/binary-tree.mjs +4352 -25113
  38. package/dist/esm-legacy/graph.mjs +847 -2636
  39. package/dist/esm-legacy/hash.mjs +181 -612
  40. package/dist/esm-legacy/heap.mjs +266 -818
  41. package/dist/esm-legacy/index.mjs +6657 -32899
  42. package/dist/esm-legacy/linked-list.mjs +640 -2611
  43. package/dist/esm-legacy/matrix.mjs +220 -535
  44. package/dist/esm-legacy/priority-queue.mjs +266 -818
  45. package/dist/esm-legacy/queue.mjs +634 -2340
  46. package/dist/esm-legacy/stack.mjs +124 -530
  47. package/dist/esm-legacy/trie.mjs +145 -592
  48. package/dist/types/data-structures/binary-tree/avl-tree.d.ts +29 -500
  49. package/dist/types/data-structures/binary-tree/binary-indexed-tree.d.ts +38 -563
  50. package/dist/types/data-structures/binary-tree/binary-tree.d.ts +230 -1212
  51. package/dist/types/data-structures/binary-tree/bst.d.ts +124 -1063
  52. package/dist/types/data-structures/binary-tree/red-black-tree.d.ts +99 -854
  53. package/dist/types/data-structures/binary-tree/segment-tree.d.ts +62 -314
  54. package/dist/types/data-structures/binary-tree/tree-map.d.ts +366 -5057
  55. package/dist/types/data-structures/binary-tree/tree-multi-map.d.ts +277 -4885
  56. package/dist/types/data-structures/binary-tree/tree-multi-set.d.ts +253 -3929
  57. package/dist/types/data-structures/binary-tree/tree-set.d.ts +261 -4782
  58. package/dist/types/data-structures/graph/abstract-graph.d.ts +44 -44
  59. package/dist/types/data-structures/graph/directed-graph.d.ts +130 -527
  60. package/dist/types/data-structures/graph/undirected-graph.d.ts +125 -482
  61. package/dist/types/data-structures/hash/hash-map.d.ts +132 -562
  62. package/dist/types/data-structures/heap/heap.d.ts +194 -746
  63. package/dist/types/data-structures/linked-list/doubly-linked-list.d.ts +120 -809
  64. package/dist/types/data-structures/linked-list/singly-linked-list.d.ts +121 -733
  65. package/dist/types/data-structures/linked-list/skip-linked-list.d.ts +193 -863
  66. package/dist/types/data-structures/matrix/matrix.d.ts +159 -474
  67. package/dist/types/data-structures/priority-queue/max-priority-queue.d.ts +1 -6
  68. package/dist/types/data-structures/priority-queue/min-priority-queue.d.ts +6 -11
  69. package/dist/types/data-structures/priority-queue/priority-queue.d.ts +1 -1
  70. package/dist/types/data-structures/queue/deque.d.ts +196 -804
  71. package/dist/types/data-structures/queue/queue.d.ts +99 -585
  72. package/dist/types/data-structures/stack/stack.d.ts +75 -481
  73. package/dist/types/data-structures/trie/trie.d.ts +98 -584
  74. package/dist/umd/data-structure-typed.js +6580 -32822
  75. package/dist/umd/data-structure-typed.min.js +3 -3
  76. package/docs-site-docusaurus/docs/api/classes/AVLTree.md +162 -215
  77. package/docs-site-docusaurus/docs/api/classes/AVLTreeNode.md +9 -9
  78. package/docs-site-docusaurus/docs/api/classes/AbstractGraph.md +47 -47
  79. package/docs-site-docusaurus/docs/api/classes/BST.md +155 -208
  80. package/docs-site-docusaurus/docs/api/classes/BSTNode.md +7 -7
  81. package/docs-site-docusaurus/docs/api/classes/BinaryIndexedTree.md +13 -29
  82. package/docs-site-docusaurus/docs/api/classes/BinaryTree.md +104 -158
  83. package/docs-site-docusaurus/docs/api/classes/BinaryTreeNode.md +13 -13
  84. package/docs-site-docusaurus/docs/api/classes/Deque.md +253 -101
  85. package/docs-site-docusaurus/docs/api/classes/DirectedGraph.md +60 -80
  86. package/docs-site-docusaurus/docs/api/classes/DoublyLinkedList.md +244 -114
  87. package/docs-site-docusaurus/docs/api/classes/DoublyLinkedListNode.md +6 -6
  88. package/docs-site-docusaurus/docs/api/classes/FibonacciHeap.md +9 -9
  89. package/docs-site-docusaurus/docs/api/classes/FibonacciHeapNode.md +1 -1
  90. package/docs-site-docusaurus/docs/api/classes/HashMap.md +52 -48
  91. package/docs-site-docusaurus/docs/api/classes/Heap.md +119 -64
  92. package/docs-site-docusaurus/docs/api/classes/IterableElementBase.md +84 -14
  93. package/docs-site-docusaurus/docs/api/classes/LinearBase.md +138 -34
  94. package/docs-site-docusaurus/docs/api/classes/LinearLinkedBase.md +149 -41
  95. package/docs-site-docusaurus/docs/api/classes/LinkedHashMap.md +23 -23
  96. package/docs-site-docusaurus/docs/api/classes/LinkedListQueue.md +172 -92
  97. package/docs-site-docusaurus/docs/api/classes/MapGraph.md +60 -80
  98. package/docs-site-docusaurus/docs/api/classes/Matrix.md +57 -52
  99. package/docs-site-docusaurus/docs/api/classes/MaxHeap.md +117 -62
  100. package/docs-site-docusaurus/docs/api/classes/MaxPriorityQueue.md +120 -70
  101. package/docs-site-docusaurus/docs/api/classes/MinHeap.md +117 -62
  102. package/docs-site-docusaurus/docs/api/classes/MinPriorityQueue.md +125 -75
  103. package/docs-site-docusaurus/docs/api/classes/PriorityQueue.md +119 -64
  104. package/docs-site-docusaurus/docs/api/classes/Queue.md +158 -74
  105. package/docs-site-docusaurus/docs/api/classes/RedBlackTree.md +171 -225
  106. package/docs-site-docusaurus/docs/api/classes/SegmentTree.md +10 -22
  107. package/docs-site-docusaurus/docs/api/classes/SinglyLinkedList.md +172 -94
  108. package/docs-site-docusaurus/docs/api/classes/SinglyLinkedListNode.md +4 -4
  109. package/docs-site-docusaurus/docs/api/classes/SkipList.md +98 -75
  110. package/docs-site-docusaurus/docs/api/classes/Stack.md +112 -50
  111. package/docs-site-docusaurus/docs/api/classes/TreeMap.md +104 -129
  112. package/docs-site-docusaurus/docs/api/classes/TreeMultiMap.md +90 -121
  113. package/docs-site-docusaurus/docs/api/classes/TreeSet.md +298 -107
  114. package/docs-site-docusaurus/docs/api/classes/Trie.md +116 -58
  115. package/docs-site-docusaurus/docs/api/classes/TrieNode.md +8 -8
  116. package/docs-site-docusaurus/docs/api/classes/UndirectedGraph.md +59 -77
  117. package/package.json +45 -46
  118. package/src/common/error.ts +15 -32
  119. package/src/common/index.ts +0 -3
  120. package/src/data-structures/base/iterable-element-base.ts +0 -3
  121. package/src/data-structures/base/linear-base.ts +2 -36
  122. package/src/data-structures/binary-tree/avl-tree.ts +31 -529
  123. package/src/data-structures/binary-tree/binary-indexed-tree.ts +47 -572
  124. package/src/data-structures/binary-tree/binary-tree.ts +326 -1311
  125. package/src/data-structures/binary-tree/bst.ts +158 -1082
  126. package/src/data-structures/binary-tree/red-black-tree.ts +451 -1290
  127. package/src/data-structures/binary-tree/segment-tree.ts +73 -351
  128. package/src/data-structures/binary-tree/tree-map.ts +462 -5124
  129. package/src/data-structures/binary-tree/tree-multi-map.ts +302 -4914
  130. package/src/data-structures/binary-tree/tree-multi-set.ts +299 -3983
  131. package/src/data-structures/binary-tree/tree-set.ts +338 -4836
  132. package/src/data-structures/graph/abstract-graph.ts +98 -167
  133. package/src/data-structures/graph/directed-graph.ts +137 -562
  134. package/src/data-structures/graph/map-graph.ts +0 -3
  135. package/src/data-structures/graph/undirected-graph.ts +132 -511
  136. package/src/data-structures/hash/hash-map.ts +154 -582
  137. package/src/data-structures/heap/heap.ts +200 -795
  138. package/src/data-structures/linked-list/doubly-linked-list.ts +121 -865
  139. package/src/data-structures/linked-list/singly-linked-list.ts +122 -794
  140. package/src/data-structures/linked-list/skip-linked-list.ts +211 -918
  141. package/src/data-structures/matrix/matrix.ts +179 -518
  142. package/src/data-structures/matrix/navigator.ts +0 -1
  143. package/src/data-structures/priority-queue/max-priority-queue.ts +1 -6
  144. package/src/data-structures/priority-queue/min-priority-queue.ts +6 -11
  145. package/src/data-structures/priority-queue/priority-queue.ts +1 -2
  146. package/src/data-structures/queue/deque.ts +214 -882
  147. package/src/data-structures/queue/queue.ts +102 -625
  148. package/src/data-structures/stack/stack.ts +76 -505
  149. package/src/data-structures/trie/trie.ts +98 -628
  150. package/src/types/common.ts +0 -10
  151. package/src/types/data-structures/binary-tree/bst.ts +0 -7
  152. package/src/types/data-structures/binary-tree/red-black-tree.ts +0 -1
  153. package/src/types/data-structures/graph/abstract-graph.ts +0 -2
  154. package/src/types/data-structures/hash/hash-map.ts +0 -3
  155. package/src/types/data-structures/hash/index.ts +0 -1
  156. package/src/types/data-structures/matrix/navigator.ts +0 -2
  157. package/src/types/utils/utils.ts +0 -7
  158. package/src/types/utils/validate-type.ts +0 -7
  159. package/src/utils/number.ts +0 -2
  160. package/src/utils/utils.ts +0 -5
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: UndirectedGraph\<V, E, VO, EO\>
8
8
 
9
- Defined in: [data-structures/graph/undirected-graph.ts:138](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L138)
9
+ Defined in: [data-structures/graph/undirected-graph.ts:137](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L137)
10
10
 
11
11
  Undirected graph implementation.
12
12
 
@@ -165,7 +165,7 @@ Concrete edge class (extends AbstractEdge<E>).
165
165
  new UndirectedGraph<V, E, VO, EO>(options?): UndirectedGraph<V, E, VO, EO>;
166
166
  ```
167
167
 
168
- Defined in: [data-structures/graph/undirected-graph.ts:152](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L152)
168
+ Defined in: [data-structures/graph/undirected-graph.ts:151](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L151)
169
169
 
170
170
  Construct an undirected graph with runtime defaults.
171
171
 
@@ -199,7 +199,7 @@ Time O(1), Space O(1)
199
199
  get size(): number;
200
200
  ```
201
201
 
202
- Defined in: [data-structures/graph/abstract-graph.ts:89](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L89)
202
+ Defined in: [data-structures/graph/abstract-graph.ts:85](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L85)
203
203
 
204
204
  Total number of entries.
205
205
 
@@ -281,7 +281,7 @@ Time O(1) avg, Space O(1)
281
281
  addEdge(edge): boolean;
282
282
  ```
283
283
 
284
- Defined in: [data-structures/graph/abstract-graph.ts:254](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L254)
284
+ Defined in: [data-structures/graph/abstract-graph.ts:258](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L258)
285
285
 
286
286
  ##### Parameters
287
287
 
@@ -307,7 +307,7 @@ addEdge(
307
307
  value?): boolean;
308
308
  ```
309
309
 
310
- Defined in: [data-structures/graph/abstract-graph.ts:256](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L256)
310
+ Defined in: [data-structures/graph/abstract-graph.ts:260](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L260)
311
311
 
312
312
  ##### Parameters
313
313
 
@@ -359,7 +359,7 @@ Time O(1) avg, Space O(1)
359
359
  addVertex(vertex): boolean;
360
360
  ```
361
361
 
362
- Defined in: [data-structures/graph/abstract-graph.ts:189](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L189)
362
+ Defined in: [data-structures/graph/abstract-graph.ts:193](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L193)
363
363
 
364
364
  ##### Parameters
365
365
 
@@ -387,7 +387,7 @@ IGraph.addVertex
387
387
  addVertex(key, value?): boolean;
388
388
  ```
389
389
 
390
- Defined in: [data-structures/graph/abstract-graph.ts:191](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L191)
390
+ Defined in: [data-structures/graph/abstract-graph.ts:195](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L195)
391
391
 
392
392
  ##### Parameters
393
393
 
@@ -425,7 +425,7 @@ bellmanFord(
425
425
  genPath?): object;
426
426
  ```
427
427
 
428
- Defined in: [data-structures/graph/abstract-graph.ts:705](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L705)
428
+ Defined in: [data-structures/graph/abstract-graph.ts:677](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L677)
429
429
 
430
430
  Bellman-Ford single-source shortest paths with option to scan negative cycles.
431
431
 
@@ -513,7 +513,7 @@ Time O(V * E), Space O(V + E)
513
513
  clear(): void;
514
514
  ```
515
515
 
516
- Defined in: [data-structures/graph/undirected-graph.ts:702](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L702)
516
+ Defined in: [data-structures/graph/undirected-graph.ts:512](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L512)
517
517
 
518
518
  Remove all vertices and edges.
519
519
 
@@ -543,7 +543,7 @@ IGraph.clear
543
543
  clone(): this;
544
544
  ```
545
545
 
546
- Defined in: [data-structures/graph/undirected-graph.ts:712](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L712)
546
+ Defined in: [data-structures/graph/undirected-graph.ts:522](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L522)
547
547
 
548
548
  Deep clone as the same concrete class.
549
549
 
@@ -579,7 +579,7 @@ createEdge(
579
579
  value?): EO;
580
580
  ```
581
581
 
582
- Defined in: [data-structures/graph/undirected-graph.ts:219](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L219)
582
+ Defined in: [data-structures/graph/undirected-graph.ts:223](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L223)
583
583
 
584
584
  Create an undirected edge instance. Does not insert into the graph.
585
585
 
@@ -637,7 +637,7 @@ IGraph.createEdge
637
637
  createVertex(key, value?): VO;
638
638
  ```
639
639
 
640
- Defined in: [data-structures/graph/undirected-graph.ts:206](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L206)
640
+ Defined in: [data-structures/graph/undirected-graph.ts:210](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L210)
641
641
 
642
642
  Create an undirected vertex instance. Does not insert into the graph.
643
643
 
@@ -683,7 +683,7 @@ IGraph.createVertex
683
683
  degreeOf(vertexOrKey): number;
684
684
  ```
685
685
 
686
- Defined in: [data-structures/graph/undirected-graph.ts:500](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L500)
686
+ Defined in: [data-structures/graph/undirected-graph.ts:385](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L385)
687
687
 
688
688
  Degree of a vertex (# of incident undirected edges).
689
689
 
@@ -723,7 +723,7 @@ IGraph.degreeOf
723
723
  deleteEdge(edgeOrOneSideVertexKey, otherSideVertexKey?): EO | undefined;
724
724
  ```
725
725
 
726
- Defined in: [data-structures/graph/undirected-graph.ts:388](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L388)
726
+ Defined in: [data-structures/graph/undirected-graph.ts:312](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L312)
727
727
 
728
728
  Delete an edge by instance or by a pair of keys.
729
729
 
@@ -751,8 +751,6 @@ Removed edge or `undefined`.
751
751
 
752
752
  Time O(1) avg, Space O(1)
753
753
 
754
- *
755
-
756
754
  #### Example
757
755
 
758
756
  ```ts
@@ -802,7 +800,7 @@ IGraph.deleteEdge
802
800
  deleteEdgeBetween(v1, v2): EO | undefined;
803
801
  ```
804
802
 
805
- Defined in: [data-structures/graph/undirected-graph.ts:295](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L295)
803
+ Defined in: [data-structures/graph/undirected-graph.ts:260](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L260)
806
804
 
807
805
  Delete a single undirected edge between two vertices.
808
806
 
@@ -838,7 +836,7 @@ Time O(1) avg, Space O(1)
838
836
  deleteVertex(vertexOrKey): boolean;
839
837
  ```
840
838
 
841
- Defined in: [data-structures/graph/undirected-graph.ts:459](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L459)
839
+ Defined in: [data-structures/graph/undirected-graph.ts:346](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L346)
842
840
 
843
841
  Delete a vertex and remove it from all neighbor lists.
844
842
 
@@ -860,8 +858,6 @@ Vertex or key.
860
858
 
861
859
  Time O(deg), Space O(1)
862
860
 
863
- *
864
-
865
861
  #### Example
866
862
 
867
863
  ```ts
@@ -896,7 +892,7 @@ dijkstraWithoutHeap(
896
892
  genPaths?): DijkstraResult<VO>;
897
893
  ```
898
894
 
899
- Defined in: [data-structures/graph/abstract-graph.ts:484](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L484)
895
+ Defined in: [data-structures/graph/abstract-graph.ts:478](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L478)
900
896
 
901
897
  Dijkstra without heap (array-based selection).
902
898
 
@@ -948,7 +944,7 @@ Time O(V^2 + E), Space O(V + E)
948
944
  edgeSet(): EO[];
949
945
  ```
950
946
 
951
- Defined in: [data-structures/graph/undirected-graph.ts:572](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L572)
947
+ Defined in: [data-structures/graph/undirected-graph.ts:421](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L421)
952
948
 
953
949
  Unique set of undirected edges across endpoints.
954
950
 
@@ -962,8 +958,6 @@ Array of edges.
962
958
 
963
959
  Time O(E), Space O(E)
964
960
 
965
- *
966
-
967
961
  #### Example
968
962
 
969
963
  ```ts
@@ -993,7 +987,7 @@ IGraph.edgeSet
993
987
  edgesOf(vertexOrKey): EO[];
994
988
  ```
995
989
 
996
- Defined in: [data-structures/graph/undirected-graph.ts:515](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L515)
990
+ Defined in: [data-structures/graph/undirected-graph.ts:400](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L400)
997
991
 
998
992
  Incident undirected edges of a vertex.
999
993
 
@@ -1099,7 +1093,7 @@ Time O(n), Space O(1)
1099
1093
  filter(predicate, thisArg?): this;
1100
1094
  ```
1101
1095
 
1102
- Defined in: [data-structures/graph/abstract-graph.ts:897](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L897)
1096
+ Defined in: [data-structures/graph/abstract-graph.ts:847](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L847)
1103
1097
 
1104
1098
  Induced-subgraph filter: keep vertices where `predicate(key, value)` is true,
1105
1099
  and only keep edges whose endpoints both survive.
@@ -1146,7 +1140,7 @@ IGraph.filter
1146
1140
  filterEntries(predicate, thisArg?): [VertexKey, V | undefined][];
1147
1141
  ```
1148
1142
 
1149
- Defined in: [data-structures/graph/abstract-graph.ts:913](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L913)
1143
+ Defined in: [data-structures/graph/abstract-graph.ts:863](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L863)
1150
1144
 
1151
1145
  Preserve the old behavior: return filtered entries as an array.
1152
1146
 
@@ -1220,7 +1214,7 @@ Time O(n), Space O(1)
1220
1214
  floydWarshall(): object;
1221
1215
  ```
1222
1216
 
1223
- Defined in: [data-structures/graph/abstract-graph.ts:798](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L798)
1217
+ Defined in: [data-structures/graph/abstract-graph.ts:760](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L760)
1224
1218
 
1225
1219
  Floyd–Warshall all-pairs shortest paths.
1226
1220
 
@@ -1333,7 +1327,7 @@ getAllPathsBetween(
1333
1327
  limit?): VO[][];
1334
1328
  ```
1335
1329
 
1336
- Defined in: [data-structures/graph/abstract-graph.ts:309](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L309)
1330
+ Defined in: [data-structures/graph/abstract-graph.ts:316](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L316)
1337
1331
 
1338
1332
  Enumerate simple paths up to a limit.
1339
1333
 
@@ -1379,7 +1373,7 @@ Time O(paths) worst-case exponential, Space O(V + paths)
1379
1373
  getBiconnectedComponents(): EO[][];
1380
1374
  ```
1381
1375
 
1382
- Defined in: [data-structures/graph/undirected-graph.ts:832](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L832)
1376
+ Defined in: [data-structures/graph/undirected-graph.ts:597](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L597)
1383
1377
 
1384
1378
  Find biconnected components using edge-stack Tarjan variant.
1385
1379
  A biconnected component is a maximal biconnected subgraph.
@@ -1402,7 +1396,7 @@ Time O(V + E), Space O(V + E)
1402
1396
  getBridges(): EO[];
1403
1397
  ```
1404
1398
 
1405
- Defined in: [data-structures/graph/undirected-graph.ts:1019](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L1019)
1399
+ Defined in: [data-structures/graph/undirected-graph.ts:703](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L703)
1406
1400
 
1407
1401
  Get bridges discovered by `tarjan()`.
1408
1402
 
@@ -1416,8 +1410,6 @@ Array of edges that are bridges.
1416
1410
 
1417
1411
  Time O(B), Space O(1)
1418
1412
 
1419
- *
1420
-
1421
1413
  #### Example
1422
1414
 
1423
1415
  ```ts
@@ -1440,7 +1432,7 @@ Time O(B), Space O(1)
1440
1432
  getCutVertices(): VO[];
1441
1433
  ```
1442
1434
 
1443
- Defined in: [data-structures/graph/undirected-graph.ts:1075](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L1075)
1435
+ Defined in: [data-structures/graph/undirected-graph.ts:723](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L723)
1444
1436
 
1445
1437
  Get articulation points discovered by `tarjan()`.
1446
1438
 
@@ -1454,8 +1446,6 @@ Array of cut vertices.
1454
1446
 
1455
1447
  Time O(C), Space O(1)
1456
1448
 
1457
- *
1458
-
1459
1449
  #### Example
1460
1450
 
1461
1451
  ```ts
@@ -1479,7 +1469,7 @@ Time O(C), Space O(1)
1479
1469
  getCycles(isInclude2Cycle?): VertexKey[][];
1480
1470
  ```
1481
1471
 
1482
- Defined in: [data-structures/graph/abstract-graph.ts:838](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L838)
1472
+ Defined in: [data-structures/graph/abstract-graph.ts:796](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L796)
1483
1473
 
1484
1474
  Enumerate simple cycles (may be expensive).
1485
1475
 
@@ -1513,7 +1503,7 @@ Time exponential in worst-case, Space O(V + E)
1513
1503
  getDFNMap(): Map<VO, number>;
1514
1504
  ```
1515
1505
 
1516
- Defined in: [data-structures/graph/undirected-graph.ts:1084](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L1084)
1506
+ Defined in: [data-structures/graph/undirected-graph.ts:732](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L732)
1517
1507
 
1518
1508
  DFN index map computed by `tarjan()`.
1519
1509
 
@@ -1535,7 +1525,7 @@ Time O(V), Space O(V)
1535
1525
  getEdge(v1, v2): EO | undefined;
1536
1526
  ```
1537
1527
 
1538
- Defined in: [data-structures/graph/undirected-graph.ts:273](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L273)
1528
+ Defined in: [data-structures/graph/undirected-graph.ts:241](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L241)
1539
1529
 
1540
1530
  Get an undirected edge between two vertices, if present.
1541
1531
 
@@ -1563,8 +1553,6 @@ Edge instance or `undefined`.
1563
1553
 
1564
1554
  Time O(1) avg, Space O(1)
1565
1555
 
1566
- *
1567
-
1568
1556
  #### Example
1569
1557
 
1570
1558
  ```ts
@@ -1594,7 +1582,7 @@ IGraph.getEdge
1594
1582
  getEndsOfEdge(edge): [VO, VO] | undefined;
1595
1583
  ```
1596
1584
 
1597
- Defined in: [data-structures/graph/undirected-graph.ts:677](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L677)
1585
+ Defined in: [data-structures/graph/undirected-graph.ts:487](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L487)
1598
1586
 
1599
1587
  Resolve an edge's two endpoints to vertex instances.
1600
1588
 
@@ -1634,7 +1622,7 @@ IGraph.getEndsOfEdge
1634
1622
  getLowMap(): Map<VO, number>;
1635
1623
  ```
1636
1624
 
1637
- Defined in: [data-structures/graph/undirected-graph.ts:1093](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L1093)
1625
+ Defined in: [data-structures/graph/undirected-graph.ts:741](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L741)
1638
1626
 
1639
1627
  LOW link map computed by `tarjan()`.
1640
1628
 
@@ -1659,7 +1647,7 @@ getMinCostBetween(
1659
1647
  isWeight?): number | undefined;
1660
1648
  ```
1661
1649
 
1662
- Defined in: [data-structures/graph/abstract-graph.ts:362](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L362)
1650
+ Defined in: [data-structures/graph/abstract-graph.ts:364](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L364)
1663
1651
 
1664
1652
  Minimum hops/weight between two vertices.
1665
1653
 
@@ -1709,7 +1697,7 @@ getMinPathBetween(
1709
1697
  isDFS?): VO[] | undefined;
1710
1698
  ```
1711
1699
 
1712
- Defined in: [data-structures/graph/abstract-graph.ts:415](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L415)
1700
+ Defined in: [data-structures/graph/abstract-graph.ts:414](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L414)
1713
1701
 
1714
1702
  Minimum path (as vertex sequence) between two vertices.
1715
1703
 
@@ -1761,12 +1749,10 @@ Time O((V + E) log V) weighted / O(V + E) unweighted, Space O(V + E)
1761
1749
  getNeighbors(vertexOrKey): VO[];
1762
1750
  ```
1763
1751
 
1764
- Defined in: [data-structures/graph/undirected-graph.ts:656](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L656)
1752
+ Defined in: [data-structures/graph/undirected-graph.ts:466](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L466)
1765
1753
 
1766
1754
  UndirectedGraph connectivity and neighbors
1767
1755
 
1768
- *
1769
-
1770
1756
  #### Parameters
1771
1757
 
1772
1758
  ##### vertexOrKey
@@ -1831,7 +1817,7 @@ IGraph.getNeighbors
1831
1817
  getPathSumWeight(path): number;
1832
1818
  ```
1833
1819
 
1834
- Defined in: [data-structures/graph/abstract-graph.ts:346](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L346)
1820
+ Defined in: [data-structures/graph/abstract-graph.ts:348](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L348)
1835
1821
 
1836
1822
  Sum the weights along a vertex path.
1837
1823
 
@@ -1865,7 +1851,7 @@ Time O(L), Space O(1) where L is path length
1865
1851
  getVertex(vertexKey): VO | undefined;
1866
1852
  ```
1867
1853
 
1868
- Defined in: [data-structures/graph/abstract-graph.ts:175](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L175)
1854
+ Defined in: [data-structures/graph/abstract-graph.ts:179](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L179)
1869
1855
 
1870
1856
  Get vertex instance by key.
1871
1857
 
@@ -1939,7 +1925,7 @@ Time O(n) generic, Space O(1)
1939
1925
  hasCycle(): boolean;
1940
1926
  ```
1941
1927
 
1942
- Defined in: [data-structures/graph/undirected-graph.ts:945](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L945)
1928
+ Defined in: [data-structures/graph/undirected-graph.ts:667](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L667)
1943
1929
 
1944
1930
  Detect whether the graph contains a cycle.
1945
1931
  Uses DFS with parent tracking.
@@ -1954,8 +1940,6 @@ Uses DFS with parent tracking.
1954
1940
 
1955
1941
  Time O(V + E), Space O(V)
1956
1942
 
1957
- *
1958
-
1959
1943
  #### Example
1960
1944
 
1961
1945
  ```ts
@@ -1979,7 +1963,7 @@ Time O(V + E), Space O(V)
1979
1963
  hasEdge(v1, v2): boolean;
1980
1964
  ```
1981
1965
 
1982
- Defined in: [data-structures/graph/abstract-graph.ts:249](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L249)
1966
+ Defined in: [data-structures/graph/abstract-graph.ts:253](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L253)
1983
1967
 
1984
1968
  Whether an edge exists between two vertices.
1985
1969
 
@@ -2053,7 +2037,7 @@ Time O(n), Space O(1)
2053
2037
  hasVertex(vertexOrKey): boolean;
2054
2038
  ```
2055
2039
 
2056
- Defined in: [data-structures/graph/abstract-graph.ts:185](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L185)
2040
+ Defined in: [data-structures/graph/abstract-graph.ts:189](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L189)
2057
2041
 
2058
2042
  Whether a vertex exists.
2059
2043
 
@@ -2093,7 +2077,7 @@ IGraph.hasVertex
2093
2077
  isEmpty(): boolean;
2094
2078
  ```
2095
2079
 
2096
- Defined in: [data-structures/graph/undirected-graph.ts:694](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L694)
2080
+ Defined in: [data-structures/graph/undirected-graph.ts:504](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L504)
2097
2081
 
2098
2082
  Whether the graph has no vertices and no edges.
2099
2083
 
@@ -2123,7 +2107,7 @@ IGraph.isEmpty
2123
2107
  isVertexKey(potentialKey): potentialKey is VertexKey;
2124
2108
  ```
2125
2109
 
2126
- Defined in: [data-structures/graph/abstract-graph.ts:215](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L215)
2110
+ Defined in: [data-structures/graph/abstract-graph.ts:219](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L219)
2127
2111
 
2128
2112
  Type guard: check if a value is a valid vertex key.
2129
2113
 
@@ -2183,7 +2167,7 @@ Time O(n), Space O(1)
2183
2167
  map<T>(callback, thisArg?): T[];
2184
2168
  ```
2185
2169
 
2186
- Defined in: [data-structures/graph/abstract-graph.ts:928](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L928)
2170
+ Defined in: [data-structures/graph/abstract-graph.ts:878](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L878)
2187
2171
 
2188
2172
  Map entries using an implementation-specific strategy.
2189
2173
 
@@ -2223,7 +2207,7 @@ Time O(n), Space O(n)
2223
2207
  print(options?): void;
2224
2208
  ```
2225
2209
 
2226
- Defined in: [data-structures/graph/abstract-graph.ts:1183](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1183)
2210
+ Defined in: [data-structures/graph/abstract-graph.ts:984](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L984)
2227
2211
 
2228
2212
  Print the graph to console.
2229
2213
 
@@ -2299,7 +2283,7 @@ Time O(n), Space O(1)
2299
2283
  removeManyVertices(vertexMap): boolean;
2300
2284
  ```
2301
2285
 
2302
- Defined in: [data-structures/graph/abstract-graph.ts:234](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L234)
2286
+ Defined in: [data-structures/graph/abstract-graph.ts:238](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L238)
2303
2287
 
2304
2288
  Delete multiple vertices.
2305
2289
 
@@ -2336,7 +2320,7 @@ setEdgeWeight(
2336
2320
  weight): boolean;
2337
2321
  ```
2338
2322
 
2339
- Defined in: [data-structures/graph/abstract-graph.ts:291](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L291)
2323
+ Defined in: [data-structures/graph/abstract-graph.ts:298](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L298)
2340
2324
 
2341
2325
  Set the weight of an existing edge.
2342
2326
 
@@ -2422,7 +2406,7 @@ Time O(n), Space O(1)
2422
2406
  tarjan(): object;
2423
2407
  ```
2424
2408
 
2425
- Defined in: [data-structures/graph/undirected-graph.ts:767](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L767)
2409
+ Defined in: [data-structures/graph/undirected-graph.ts:541](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L541)
2426
2410
 
2427
2411
  Tarjan-based bridge and articulation point detection.
2428
2412
 
@@ -2460,8 +2444,6 @@ lowMap: Map<VO, number>;
2460
2444
 
2461
2445
  Time O(V + E), Space O(V + E)
2462
2446
 
2463
- *
2464
-
2465
2447
  #### Example
2466
2448
 
2467
2449
  ```ts
@@ -2510,7 +2492,7 @@ Time O(n), Space O(n)
2510
2492
  toDot(options?): string;
2511
2493
  ```
2512
2494
 
2513
- Defined in: [data-structures/graph/abstract-graph.ts:1143](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1143)
2495
+ Defined in: [data-structures/graph/abstract-graph.ts:952](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L952)
2514
2496
 
2515
2497
  Generate DOT language representation for Graphviz.
2516
2498
 
@@ -2550,7 +2532,7 @@ DOT format string.
2550
2532
  toVisual(options?): string;
2551
2533
  ```
2552
2534
 
2553
- Defined in: [data-structures/graph/abstract-graph.ts:1108](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1108)
2535
+ Defined in: [data-structures/graph/abstract-graph.ts:920](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L920)
2554
2536
 
2555
2537
  Generate a text-based visual representation of the graph.
2556
2538
 
@@ -2620,7 +2602,7 @@ Time O(n), Space O(1)
2620
2602
  static fromEntries<V>(entries): UndirectedGraph<V, undefined, UndirectedVertex<V>, UndirectedEdge<undefined>>;
2621
2603
  ```
2622
2604
 
2623
- Defined in: [data-structures/graph/undirected-graph.ts:191](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L191)
2605
+ Defined in: [data-structures/graph/undirected-graph.ts:192](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L192)
2624
2606
 
2625
2607
  Construct an undirected graph from `[key, value]` entries.
2626
2608
 
@@ -2658,7 +2640,7 @@ Time O(V), Space O(V)
2658
2640
  static fromKeys<K>(keys): UndirectedGraph<K, undefined, UndirectedVertex<K>, UndirectedEdge<undefined>>;
2659
2641
  ```
2660
2642
 
2661
- Defined in: [data-structures/graph/undirected-graph.ts:174](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L174)
2643
+ Defined in: [data-structures/graph/undirected-graph.ts:172](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L172)
2662
2644
 
2663
2645
  Construct an undirected graph from keys with value initializer `v => v`.
2664
2646
 
@@ -2701,7 +2683,7 @@ Time O(V), Space O(V)
2701
2683
  get protected _edgeConnector(): string;
2702
2684
  ```
2703
2685
 
2704
- Defined in: [data-structures/graph/abstract-graph.ts:1087](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1087)
2686
+ Defined in: [data-structures/graph/abstract-graph.ts:93](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L93)
2705
2687
 
2706
2688
  The edge connector string used in visual output.
2707
2689
  Override in subclasses (e.g., '--' for undirected, '->' for directed).
@@ -2722,7 +2704,7 @@ Override in subclasses (e.g., '--' for undirected, '->' for directed).
2722
2704
  protected _addEdge(edge): boolean;
2723
2705
  ```
2724
2706
 
2725
- Defined in: [data-structures/graph/undirected-graph.ts:1103](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L1103)
2707
+ Defined in: [data-structures/graph/undirected-graph.ts:751](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/undirected-graph.ts#L751)
2726
2708
 
2727
2709
  Internal hook to attach an undirected edge into adjacency maps.
2728
2710
 
@@ -2756,7 +2738,7 @@ Time O(1) avg, Space O(1)
2756
2738
  protected _addVertex(newVertex): boolean;
2757
2739
  ```
2758
2740
 
2759
- Defined in: [data-structures/graph/abstract-graph.ts:1054](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1054)
2741
+ Defined in: [data-structures/graph/abstract-graph.ts:1089](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1089)
2760
2742
 
2761
2743
  Insert a pre-built vertex into the graph.
2762
2744
 
@@ -2790,7 +2772,7 @@ Time O(1) avg, Space O(1)
2790
2772
  protected _createInstance(_options?): this;
2791
2773
  ```
2792
2774
 
2793
- Defined in: [data-structures/graph/abstract-graph.ts:987](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L987)
2775
+ Defined in: [data-structures/graph/abstract-graph.ts:1022](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1022)
2794
2776
 
2795
2777
  Create an empty graph instance of the same concrete species.
2796
2778
 
@@ -2824,7 +2806,7 @@ Time O(1), Space O(1)
2824
2806
  protected _createLike(iter?, options?): this;
2825
2807
  ```
2826
2808
 
2827
- Defined in: [data-structures/graph/abstract-graph.ts:1009](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1009)
2809
+ Defined in: [data-structures/graph/abstract-graph.ts:1044](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1044)
2828
2810
 
2829
2811
  Create a same-species graph populated with entries; preserves edges among kept vertices.
2830
2812
 
@@ -2864,7 +2846,7 @@ Time O(V + E), Space O(V + E)
2864
2846
  protected _getIterator(): IterableIterator<[VertexKey, V | undefined]>;
2865
2847
  ```
2866
2848
 
2867
- Defined in: [data-structures/graph/abstract-graph.ts:958](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L958)
2849
+ Defined in: [data-structures/graph/abstract-graph.ts:993](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L993)
2868
2850
 
2869
2851
  Internal iterator over `[key, value]` entries in insertion order.
2870
2852
 
@@ -2890,7 +2872,7 @@ Time O(V), Space O(1)
2890
2872
  protected _getVertex(vertexOrKey): VO | undefined;
2891
2873
  ```
2892
2874
 
2893
- Defined in: [data-structures/graph/abstract-graph.ts:1068](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1068)
2875
+ Defined in: [data-structures/graph/abstract-graph.ts:1103](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1103)
2894
2876
 
2895
2877
  Resolve a vertex key or instance to the concrete vertex instance.
2896
2878
 
@@ -2924,7 +2906,7 @@ Time O(1), Space O(1)
2924
2906
  protected _getVertexKey(vertexOrKey): VertexKey;
2925
2907
  ```
2926
2908
 
2927
- Defined in: [data-structures/graph/abstract-graph.ts:1079](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1079)
2909
+ Defined in: [data-structures/graph/abstract-graph.ts:1114](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1114)
2928
2910
 
2929
2911
  Resolve a vertex key from a key or vertex instance.
2930
2912
 
@@ -2958,7 +2940,7 @@ Time O(1), Space O(1)
2958
2940
  protected _snapshotOptions(): Record<string, unknown>;
2959
2941
  ```
2960
2942
 
2961
- Defined in: [data-structures/graph/abstract-graph.ts:973](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L973)
2943
+ Defined in: [data-structures/graph/abstract-graph.ts:1008](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/graph/abstract-graph.ts#L1008)
2962
2944
 
2963
2945
  Capture configuration needed to reproduce the current graph.
2964
2946