Associative Knowledge Graphs for Efficient Sequence Storage and Retrieval