graph definitions