On revealing graph cycles via boundary measurements