code: function DocumentGraph(options) {
      this.options = object.extend(defaultOptions, options || {});
      this._gloss = new Glossary();
      
      // Parse redis cluster configuration in the form of:
      // "host:port,host:port,host:port"
      if (this.options.redisCluster) {
          var addresses = this.options.redisCluster.split(',');
          var config = [];
          for (var i = 0; i < addresses.length; i++) {
              var items = addresses[i].split(':');
              var host = "0.0.0.0";
              var port = 6379;
              if (items.length == 1) {
                  port = parseInt(items[0]);
              } else {
                  if (items[0].length > 0) {
                      host = items[0];
                  }
                  port = parseInt(items[1]);
              }
              config.push({ port: port, host: host });
          }
          this._redisCluster = RedisCluster.create(config, { return_buffers: true });
      } else {
          this._redisClient = redis.createClient(this.options.redisPort, this.options.redisHost, { return_buffers: true });
          this._redisClient.select(this.options.redisDb);
          this._redisStream = RedisStream(this.options.redisPort, this.options.redisHost, this.options.redisDb);
      }
  
      this._k_Total = this._fmt(TOTAL);
      this._k_TotalTerms = this._fmt(TOTAL, TERMS);
  }
docs: DocumentGraph represents a client for processing documents in order to process document text in order to build a graph of connections between document ids, text, parts of speech context and the language as it is presented through the data.