implemented basic overlap of two networks