{"size": 1523, "ext": "js", "max_stars_repo_path": "lib/tiny-graph.min.js", "max_stars_repo_name": "avoidwork/tiny-graph", "max_stars_repo_stars_event_min_datetime": "2015-01-15T12:52:23.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-24T13:34:47.000Z", "max_issues_repo_path": "lib/tiny-graph.min.js", "max_issues_repo_name": "avoidwork/tiny-graph", "max_issues_repo_issues_event_min_datetime": "2015-02-06T12:51:29.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-08T13:18:36.000Z", "max_forks_repo_path": "lib/tiny-graph.min.js", "max_forks_repo_name": "avoidwork/tiny-graph", "max_forks_repo_forks_event_min_datetime": "2015-01-15T15:23:28.000Z", "max_forks_repo_forks_event_max_datetime": "2019-11-07T20:30:31.000Z"}
{"max_stars_count": 36, "max_issues_count": 2, "max_forks_count": 4, "avg_line_length": 253.8333333333, "max_line_length": 1406, "alphanum_fraction": 0.6841759685}
/*
 2018 Jason Mulligan <jason.mulligan@avoidwork.com>
 @version 2.1.3
*/
"use strict";(function(a){function b(a){return void 0!==a}function c(a){return{value:a,edges:{}}}function d(){return new e}class e{constructor(){this.nodes={}}add(a,c){let d=!1;return b(this.nodes[a])&&b(this.nodes[c])&&(this.nodes[a].edges[c]=this.nodes[c].edges[a]=null,d=!0),d}adjacent(a,c){const d=this.nodes[a];let e=!1;return b(d)&&(e=b(d.edges[c])),e}del(a,c){let d=!1;return b(this.nodes[a])&&b(this.nodes[a].edges[c])&&(delete this.nodes[a].edges[c],delete this.nodes[c].edges[a],d=!0),d}delNode(a){const c=this.nodes[a];let d=!1;return b(c)&&(Object.keys(c.edges).forEach((b)=>{delete this.nodes[b].edges[a]}),delete this.nodes[a],d=!0),d}fromJSON(a){return this.nodes=JSON.parse(a),this}getEdgeValue(a,c){const d=this.nodes[a];let e;return b(d)&&b(d.edges[c])&&(e=d.edges[c]),e}getNodeValue(a){const c=this.nodes[a];let d;return b(c)&&(d=c.value),d}neighbors(a){const c=this.nodes[a];return b(c)?Object.keys(c.edges):[]}setEdgeValue(a,c,d){let e=!1;return b(this.nodes[a])&&b(this.nodes[a].edges[c])&&(this.nodes[a].edges[c]=this.nodes[c].edges[a]=b(d)?d:null,e=!0),e}setNodeValue(a,d){const e=this.nodes[a];return d=b(d)?d:null,e?e.value=d:this.nodes[a]=c(d),!0}toJSON(a=0){return JSON.stringify(this.nodes,null,a)}}d.version="2.1.3","undefined"==typeof exports?"function"==typeof define&&void 0!==define.amd?define(()=>d):a.graph=d:module.exports=d})("undefined"==typeof window?global:window);
//# sourceMappingURL=tiny-graph.min.js.map