graph extraction example