Iterate through 2d vector
<p>I try to create a Graph class and want to print all Edges to the screen. But I have a problem iterating a 2d vector.</p>

<pre><code>class Graph
{
public:
    Graph(void);
    ~Graph(void);
    vector&lt;Node*&gt; nodes;
    void addNode(Node node);
    void addDirectedEdge(Node &amp;head,Node* tail,int cost);
    void toSrceen();
};

class Node
{
public:
    Node(char* name);
    ~Node(void);
    char* name;
    vector&lt;Node*&gt; children;
    vector&lt;int&gt; costs;

};

void Graph::toSrceen()
{
    for (vector&lt;vector&lt;Node*&gt;&gt;::iterator i = nodes.begin(); i != nodes.end();++i) 
    {
         for (vector&lt;Node*&gt;::iterator j = i-&gt;begin(); j != i-&gt;end();++i)
         {
             cout &lt;&lt; j-&gt;name;
         }
     }
}
</code></pre>

<p>There is a problem in the first for loop but i can not find the mistake...</p>
