How to create a graph from a personnal extension