adjust graph-building procedure

choose randomly from among all possible connections in the graph,
rather than choosing a random node and then selecting from that node’s
connections