connected complexity metric