code: function nodes(){
      var nodeSet = {};
      Object.keys(edges).forEach(function (u){
        nodeSet[u] = true;
        edges[u].forEach(function (v){
          nodeSet[v] = true;
        });
      });
      return Object.keys(nodeSet);
    }
docs: Gets the list of nodes that have been added to the graph.