Should you work one day on pricing (art of pricing an instrument using Gross Basis, CTD, ASW, ...), you might need to refresh your memories with respect of Graph Algorithms.
Most (all?) pricing methods use graph (Directed Acyclic Graphs), instrument nodes and dependencies.
The probably two most important ones are breadth-first search and cycle-detection.
More posts will follow on my view on how to implement them.
File generation with SBT
3 years ago