add the construction of simple graph