Singularity Theory For Extended Cobordism Categories And An Application To Graph Theory