Fix codewords graph definitions