<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Graph traversal - Page 2 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=graph_traversal&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=graph_traversal&amp;p=3">3.Next</a>
</p>
<p>than once, since it is not necessarily known before transitioning to a vertex that it has already been explored. As graphs become more <a href="page.php?w=dense_graph">dense</a>, this redundancy becomes more prevalent, causing computation time to increase; as graphs become more sparse, the opposite holds true.</p>

<p>Thus, it is usually necessary to remember which vertices have already been explored by the algorithm, so that vertices are revisited as infrequently as possible (or in the worst case, to prevent the traversal from continuing indefinitely).</p><p>
<a accesskey="1" href="page.php?w=graph_traversal&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=graph_traversal&amp;p=3">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
