mratsim Tue, 04 Jul 2023 02:00:10 -0700
This is a common problem in graph data structures.
Either you store a tree of references or you use an adjacency matrix.