nodes.len() in `each_edge` must have been a bug right?