title: Android Navigation Component: How to solve the circular navigation with nested graph?
body: <p>In our user requirement we have a flow like this.</p>
  <p><a href="https://i.stack.imgur.com/BhYQJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BhYQJ.png" alt="enter image description here" /></a></p>
  <p>I have searched the following:</p>
  <p><a href="https://developer.android.com/guide/navigation/navigation-principles" rel="noreferrer">https://developer.android.com/guide/navigation/navigation-principles</a></p>
  <p><a href="https://stackoverflow.com/questions/61083805/circular-reference-with-nested-nav-graphs">Circular Reference with Nested Nav Graphs</a></p>
  <p>But nothing can help...</p>
  <p><strong>What I have done?</strong></p>
  <p>Currently I split 2 graph and add duplicate Fragment C in Graph2. Also, I change the graph start destination to Fragment C in graph 1 programmatically only I clicked from graph2. This is an ugly solution But I have no idea how to solve this issue.</p>
  <p><strong>My question is : Is there any way to do it rather making a duplicate destination and changing the start destination?</strong></p>
  <p>Graph 1:</p>
  <pre><code>&lt;include app:graph=&quot;@navigation/graph2&quot; /&gt;
  &lt;dialog
          android:id=&quot;@+id/fragmentA&quot;
          android:label=&quot;Fragment A&quot;
          tools:layout=&quot;@layout/fragmentA&quot;/&gt;
  &lt;dialog
          android:id=&quot;@+id/fragmentB&quot;
          android:label=&quot;Fragment B&quot;
          tools:layout=&quot;@layout/fragmentB&quot;&gt;
      &lt;action
              android:id=&quot;@+id/NavigateToGraph2&quot;
              app:destination=&quot;@id/graph2&quot;&gt;
  &lt;/dialog&gt;
  &lt;dialog
          android:id=&quot;@+id/fragmentC&quot;
          android:label=&quot;Fragment C&quot;
          tools:layout=&quot;@layout/fragmentC&quot;/&gt;
  &lt;dialog
          android:id=&quot;@+id/fragmentD&quot;
          android:label=&quot;Fragment D&quot;
          tools:layout=&quot;@layout/fragmentD&quot;/&gt;
  &lt;dialog
          android:id=&quot;@+id/fragmentE&quot;
          android:label=&quot;Fragment E&quot;
          tools:layout=&quot;@layout/fragmentE&quot;/&gt;
  </code></pre>
  <p>Graph 2</p>
  <pre><code>&lt;dialog
          android:id=&quot;@+id/fragmentF&quot;
          android:label=&quot;Fragment F&quot;
          tools:layout=&quot;@layout/fragmentF&quot;/&gt;
  &lt;dialog
          android:id=&quot;@+id/fragmentG&quot;
          android:label=&quot;Fragment G&quot;
          tools:layout=&quot;@layout/fragmentG&quot;/&gt;
  &lt;dialog
          android:id=&quot;@+id/fragmentC&quot;
          android:label=&quot;Fragment C&quot;
          tools:layout=&quot;@layout/fragmentC&quot;/&gt;
  </code></pre>