Low Level Design, Object Oriented, Graph Data Structure, Hashmap, Interview Questions.
\ = SortedSet(key=lambda k: k.attributes[sortKey]) else: self.adj_list[srcNode.uid][dstNode.type] = set() self.adj_list[srcNode.uid][dstNode.type].add(dstNode) # Add parent nodes if dstNode.uid not in self.parents: self.parents[dstNode.uid] = set() self.parents[dstNode.uid].add(srcNode) def