Function from a Graph 2