More accuracy could possible be achieved by weighing values based on histogram curves of coordination numbers.
Right now, generate_network() relies on pulling and editing the generated network based on random sampling of a large sample size (of coordination numbers).