refine the graph.
new a hybrid potrf function.