init graph part