wed from minimum cycle basis