building initial network graphs