High-performance TypeScript graph algorithms library optimized for trading bots and arbitrage detection