Heterogeneous Trajectory Forecasting via Risk and Scene Graph Learning