hetio / hetnetpy

Hetnets in Python (relocated from dhimmel/hetio)
https://het.io/software
Other
93 stars 28 forks source link

Automatic abbreviation code and kind_to_abbrev safety checks #1

Closed dhimmel closed 9 years ago

dhimmel commented 9 years ago

For compatibility with graphs saved prior to ef0b76ba3b4befa79efd6cc3339e31d3ccd21c1f and for convenience, kind_to_abbrev (the dictionary of node and edge kind abbreviations) should have the ability to be automatically generated. Most of the code to perform this task used to be in the module, so it will not be difficult.

Additionally, safety checks should be executed to ensure that abbreviations do not create ambiguity. In other words, abbreviated metapaths should unambiguously identify the actual metapath.