diprism / fggs

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

Assign truly unique ID to nodes and edges if none is given #88

Closed davidweichiang closed 2 years ago

davidweichiang commented 2 years ago

This is a minimal fix that avoids generating random IDs (and the miniscule possibility of an ID collision), and also avoids unintentionally matching-up of nodes/edges during conjunction.

Closes #37

davidweichiang commented 2 years ago

I guess this is ready to merge. I'm a little worried that creating all those Unique objects will be expensive, but maybe that can be optimized later.