From Mice to Trains: Amortized Bayesian Inference on Graph Data