Some algebraic structures connected with the Yang—Baxter equation