handle root packages with no libs
handle packages with no defined version
toDot: learned optional esacpeLabels arg