code: function name(file, implicit){
    function rel(name){
      return name ? String(name).replace(/^\//, '') : name;
    }
  
    if (file.filename)
      file.graphName = file.filename;
  
    if (file.sourceFilename)
      file.graphName = file.sourceFilename;
  
    if (!file.graphName && implicit && file.inline && file.htmlFile)
      return rel(file.htmlFile.filename);
  
    return rel(file.graphName);
  }
docs: function resolveLinkTo(link){ var n = name(link[0]); if (n) return [n]; else return link[0].linkTo.map(resolveLinkTo).reduce(function(item, res){ if (item) return res.concat(item); else return res; }, []); }