mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-12-19 06:58:15 +08:00
Remove live code & console.log, leave examples as comments (Geometry, Graphs, Maths).
This commit is contained in:
@@ -30,11 +30,11 @@ class Graph {
|
||||
}
|
||||
}
|
||||
|
||||
(() => {
|
||||
const graph = new Graph()
|
||||
graph.addEdge(1, 2)
|
||||
graph.addEdge(2, 3)
|
||||
graph.addEdge(3, 5)
|
||||
graph.addEdge(1, 5)
|
||||
console.log(graph.nodeNeighbors(1))
|
||||
})()
|
||||
export { Graph }
|
||||
|
||||
// const graph = new Graph()
|
||||
// graph.addEdge(1, 2)
|
||||
// graph.addEdge(2, 3)
|
||||
// graph.addEdge(3, 5)
|
||||
// graph.addEdge(1, 5)
|
||||
// graph.nodeNeighbors(1)
|
||||
|
||||
Reference in New Issue
Block a user