isInGraph
Returns true if the current navigation position is inside the given graphId.
When the current entry is a modal, the check is performed against the graph hierarchy of underlyingScreen so that modal content can still query its owning graph.
Parameters
graphId
The route identifier of the graph to test membership in.