public Set<V> getSinks(GDirectedGraph<V, E> graph) {
		if (isTopDown) {
			return asSet(GraphAlgorithms.getSinks(graph));
		}
		return asSet(GraphAlgorithms.getSources(graph));
	}
Gets the exit vertices of the given graph.  If this is a top-down navigator, then the
sinks are returned; otherwise, the sources are returned.

@param graph the graph
@return the exits
Ghidra/Framework/Graph/src/main/java/ghidra/graph/algo/GraphNavigator.java