HF RL Explorer

As a user of the igraph library, I need a function to generate Hamming graphs so that I can model problems…

As a user of the igraph library, I need a function to generate Hamming graphs so that I can model problems…: a task in LegoFlow-SWE (Harbor dataset). Parameters: - graph : an uninitialized graph object that will be populated by the function. - n : the length of the strings (dimension). - q : the…

The task

**Parameters:** - `graph`: an uninitialized graph object that will be populated by the function. - `n`: the length of the strings (dimension). - `q`: the size of the alphabet. - `directed`: whether to create a directed graph (edges from lower to higher vertex IDs).

Part of Lego-X/LegoFlow-SWE.