index.js
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);
  }
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);
  }
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 ) ; }
Gets the list of nodes that have been added to the graph.
Gets the list of nodes that have been added to the graph .