init graph