Add example to generate a graph