mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 14:14:06 +00:00
back
small improvements, bug fixes, ocd formatting,
This commit is contained in:
@@ -9,13 +9,13 @@ const typedefs = require("../typedefs");
|
||||
*
|
||||
* Example:
|
||||
* ```javascript
|
||||
* let nodes = ['a', 'b', 'c', 'd', 'e'];
|
||||
* let nodes = ["a", "b", "c", "d", "e"];
|
||||
* let edges = [
|
||||
* { from: 'a', to: 'b' },
|
||||
* { from: 'b', to: 'c' },
|
||||
* { from: 'c', to: 'd' },
|
||||
* { from: 'd', to: 'a' },
|
||||
* { from: 'e', to: 'a' }
|
||||
* { from: "a", to: "b" },
|
||||
* { from: "b", to: "c" },
|
||||
* { from: "c", to: "d" },
|
||||
* { from: "d", to: "a" },
|
||||
* { from: "e", to: "a" }
|
||||
* ];
|
||||
* let g = new myGraph(nodes, edges);
|
||||
* console.log(g.detectCycle()); // true
|
||||
|
||||
Reference in New Issue
Block a user