Networks of rigid molecules