the beginning of the graph construction by price