Update Graph Generation

To support the new version of the Graph Builder, the code need to be modifyed.

Edited by Olivier Jourdan