code: function Graph(directed) {
    this.directed = (directed === undefined ? true : !!directed);
    this.adjList = Object.create(null);
    this.vertices = new HashSet();
  }
docs: Adjacency list representation of a graph
  @param {bool} directed