A graph data structure in JavaScript