Add test to check edge connectivity against stoer_wagner.