init graph and show edges