title: Jetpack Navigation - retrieve nested graph programatically
body: <p>I would like to retrieve nested graph programmatically to change <code>startDestination</code>.</p>
  
  <p>that one works for navHost</p>
  
  <pre><code>val navHostFragment = appNavFragment as NavHostFragment
  val inflater = navHostFragment.navController.navInflater
  val graph = inflater.inflate(R.navigation.nav_app)
  graph.startDestination = if(sth) startDestination1 else startDestination2
  
  val navController = navHostFragment.navController
  
  navController.graph = graph
  </code></pre>
  
  <p>And I would like to do the same for the nested graph, but I don't know how to retrieve it programmatically.</p>