Real-time Graph Building on FPGAs for Machine Learning Trigger Applications in Particle Physics