add partial graph