minimal cycle basis applied