code: function attachStaticFromMethod(Class) {
  
    /**
     * Builds a graph from serialized data or another graph's data.
     *
     * @param  {Graph|SerializedGraph} data      - Hydratation data.
     * @param  {object}                [options] - Options.
     * @return {Class}
     */
    Class.from = function(data, options) {
      const instance = new Class(options);
      instance.import(data);
  
      return instance;
    };
  }
docs: Attaching static #.from method to each of the constructors.