diprism / fggs

Factor Graph Grammars in Python
MIT License
13 stars 3 forks source link

Add functions which create a singleton HRG or FGG #110

Closed darcey closed 2 years ago

darcey commented 2 years ago

Closes #106

I wasn't sure where to put these functions, so I made a new file "fgg_utils.py". Happy to move them somewhere else if there's a better spot for them.

(Also fixed a variable naming error in fggs.py that I happened to notice today.)

davidweichiang commented 2 years ago

Looks fine to me! It seems slightly odd to me for it to take labels but return names, but I couldn't think of a simpler alternative.