This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| var _ = _ || require('lodash'); | |
| /** | |
| * For an input array, return a multidimensional array with elements distributed | |
| * across rows. Number of elements in each row is determined by a "weighted modulus", | |
| * e.g. keeping a running total based on each elements `dividendProp` and modulo the | |
| * specified `divisor`. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| @author David Piegza | |
| Implements a graph structure. | |
| Consists of Graph, Nodes and Edges. | |
| Nodes: | |
| Create a new Node with an id. A node has the properties | |
| id, position and data. |