added edge initialization