lab2 graph initialization