mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 17:50:39 +08:00
Data Structures/Graph
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
|
||||
class Graph {
|
||||
constructor () {
|
||||
this.adjacencyMap = {}
|
||||
@ -42,3 +41,4 @@ const example = () => {
|
||||
g.addEdge(1, 3)
|
||||
g.printGraph()
|
||||
}
|
||||
example()
|
||||
|
Reference in New Issue
Block a user