constructor(value) {
    this.value = value;
    this.adjacents = new HashSet(); // adjacency list
  }
Graph node/vertex that hold adjacencies nodes
For performance, uses a HashSet instead of array for adjacents.