factor graph binary format (big endian)