update Graph Factory

(changed by Thomas)