power generation with connectivity constraints