Nonparametric Teaching for Graph Property Learners