graph constructor ..