simplest graph functions