js-data-structure
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -256,3 +256,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/** | ||
* The recursive function to DFS traverse the vertices | ||
* The recursive function to DFS traverse the vertices | ||
* @method dfsVisit | ||
@@ -259,0 +259,0 @@ * @param {Object} v - the current visiting vertex |
@@ -180,3 +180,3 @@ 'use strict'; | ||
/** | ||
* The recursive function to DFS traverse the vertices | ||
* The recursive function to DFS traverse the vertices | ||
* @method dfsVisit | ||
@@ -183,0 +183,0 @@ * @param {Object} v - the current visiting vertex |
{ | ||
"name": "js-data-structure", | ||
"description": "JavaScript Data Structure", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"main": "dist/index.js", | ||
@@ -30,4 +30,3 @@ "scripts": { | ||
"js", | ||
"Data", | ||
"Structure", | ||
"data structure", | ||
"algorithm", | ||
@@ -34,0 +33,0 @@ "queue", |
@@ -11,5 +11,5 @@ # JavaScript Data Structure | ||
Java Script Data Structure implemented in ES6. It covers the implementation of the basic data structures, including graph, tree, queue, and some sorting and search algorithm for array. | ||
JavaScript data structure implemented in ES6. This library covers the implementation of the basic data structures, including [graph](https://en.wikipedia.org/wiki/Graph_%28abstract_data_type%29)([Breath-first Search](https://en.wikipedia.org/wiki/Breadth-first_search), [Depth-first search](https://en.wikipedia.org/wiki/Depth-first_search)), [binary search tree](https://en.wikipedia.org/wiki/Binary_search_tree), [queue](https://en.wikipedia.org/wiki/Queue_%28abstract_data_type%29), and some sorting ([Quick Sort](http://en.wikipedia.org/wiki/Quicksort), [Merge Sort](http://en.wikipedia.org/wiki/Merge_sort)) and search algorithm for array. | ||
The code here is rewriting from [Learning JavaScript Data Structures and Algorithms](https://github.com/loiane/javascript-datastructures-algorithms), and added the unit tests for each of the data structure. | ||
The code here is rewriting from [Learning JavaScript Data Structures and Algorithms](https://github.com/loiane/javascript-datastructures-algorithms) to es6 with some enhancements on performance, and added the unit tests for each of the data structure. | ||
@@ -27,3 +27,3 @@ | ||
``` | ||
// Using Graph | ||
// Graph | ||
import { Graph } from 'js-data-structure'; | ||
@@ -73,2 +73,3 @@ const graph = new Graph(); | ||
``` | ||
@@ -75,0 +76,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
181165
85