update the graph prepartion code with more configuration files