nit: `function(ind, edge) {`