Add three simple graph functions