Skip to content

Commit

Permalink
release: 1.48.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zrwusa committed Dec 6, 2023
1 parent 6cc2506 commit ce99f79
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file.
- [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
- [`auto-changelog`](https://github.com/CookPete/auto-changelog)

## [v1.48.3](https://github.com/zrwusa/data-structure-typed/compare/v1.35.0...main) (upcoming)
## [v1.48.4](https://github.com/zrwusa/data-structure-typed/compare/v1.35.0...main) (upcoming)

### Changes

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "data-structure-typed",
"version": "1.48.3",
"version": "1.48.4",
"description": "Data Structures of Javascript & TypeScript. Heap, Binary Tree, RedBlack Tree, Linked List, Deque, Trie, HashMap, Directed Graph, Undirected Graph, Binary Search Tree(BST), AVL Tree, Priority Queue, Graph, Queue, Tree Multiset, Singly Linked List, Doubly Linked List, Max Heap, Max Priority Queue, Min Heap, Min Priority Queue, Stack.",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
16 changes: 11 additions & 5 deletions src/data-structures/graph/undirected-graph.ts
Original file line number Diff line number Diff line change
@@ -158,17 +158,23 @@ export class UndirectedGraph<
}

/**
* Time Complexity: O(|E|), where |E| is the number of edges incident to the given vertex.
* Time Complexity: O(E), where E is the number of edges incident to the given vertex.
* Space Complexity: O(1)
*/


/**
* Time Complexity: O(|E|), where |E| is the number of edges incident to the given vertex.
* Time Complexity: O(E), where E is the number of edges incident to the given vertex.
* Space Complexity: O(1)
*
* The deleteEdge function removes an edge between two vertices in a graph.
* @param {EO} edge - The parameter "edge" is of type EO, which represents an edge in a graph.
* @returns The method is returning either the removed edge (of type EO) or undefined if the edge was not found.
* The function `deleteEdge` deletes an edge between two vertices in a graph.
* @param {EO | VertexKey} edgeOrOneSideVertexKey - The parameter `edgeOrOneSideVertexKey` can be
* either an edge object or a vertex key.
* @param {VertexKey} [otherSideVertexKey] - The parameter `otherSideVertexKey` is an optional
* parameter that represents the key of the vertex on the other side of the edge. It is used when the
* `edgeOrOneSideVertexKey` parameter is a vertex key, and it specifies the key of the vertex on the
* other side of the
* @returns The `deleteEdge` function returns either the deleted edge object (EO) or `undefined`.
*/
deleteEdge(edgeOrOneSideVertexKey: EO | VertexKey, otherSideVertexKey?: VertexKey): EO | undefined {
let oneSide: VO | undefined, otherSide: VO | undefined;
2 changes: 1 addition & 1 deletion test/integration/bst.test.ts
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ describe('Individual package BST operations test', () => {
});

it('should perform various operations on a Binary Search Tree with object values', () => {
const objBST = new BST<{ key: number; keyA: number }>();
const objBST = new BST<number,{ key: number; keyA: number }>();
expect(objBST).toBeInstanceOf(BST);
objBST.add([11, { key: 11, keyA: 11 }]);
objBST.add([3, { key: 3, keyA: 3 }]);

0 comments on commit ce99f79

Please sign in to comment.