Joint task and distribution generalization via graph substructure prompting | Synapse