Graph density, local and global clustering