title: Construct adjacency matrix from input dataset graph file using matlab editor
body: <p>How can I construct adjacency matrix from input dataset graph file, which has the following data:</p>
  
  <blockquote>
    <p>The first line of the dataset file, represents the number of nodes and edges resp.
    The following lines represent node1 and node2 denoting an edge existing between them
    For example: amazon.graph dataset file contains the following</p>
  </blockquote>
  
  <p>Below is the file amazon.graph<br>
  4 6   // number of nodes and edges<br>
  0 1   // edge between node 0 and 1<br>
  1 3<br>
  2 3<br>
  1 2<br>
  0 2<br>
  0 3 </p>
  
  <blockquote>
    <p>This data is contained in a file named "amazon.graph". I need help with a  matlab function that can read the file and build adjacency matrix from the dataset file</p>
  </blockquote>