Obtaining graph relationships of filters and connections ?

In the C++ api, after creating various filters and connecting them is there some API or mechanism to find out the graph of the connections and hopefully find the leaf/sink nodes where calling Update() will exercise the graph/pipeline ?

Cheers