fix a bug in structure_factor_graph_model.py

@sonney2k It seems for some reason now we cannot call like this: LabelsFactory.to_structured(bmrm.apply()).
Hopefully no other potential problems there.