title: How to create a Graph for a Uniform-cost Search in C++
body: <p>Could anyone please help me how to graph a tree in C++ if I have the following input file to read it: </p>
  
  <pre><code>A,B,1.2,1
  A,C,1.5,0
  C,D,0.7,0
  D,E,0.6,0
  </code></pre>
  
  <p>The first two columns are 2 nodes. The third column is the cost for moving from one node to another. The fourth column is the reliable status (1=reliable, 0=unreliable).</p>
  
  <p>I have ideas on how to implement the search itself, but I'm having a hard time to graph a tree in my code from the input file.</p>
  
  <p>I'm not asking for any code, I hope that someone could give me an idea or pseudo code on how to accomplish this task.</p>
  
  <p>Thanks a lot in advance!</p>
  
  <p>Chris</p>