Helper to get the links involved in this event from the graph.
Iterable<GraphLink> getLinks(Graph graph) => entityIds.map((id) => graph.getLink(id)).whereType<GraphLink>();