title: How to calculate adjacency matrices in R
body: <p>I have this data. I want to calculate Adjacency matrices in R.</p>
  
  <p>How can I do this? V1,V2,V3 are columns.V1 and V2 are NODES, and W3 are weight from V1 to V2. Direction in this data is important. After calculating the Adjacency matrices, I want to calculate shortest path between these vertices with R language.</p>
  
  <p>How can I do this?</p>
  
  <pre><code>      V1      V2     V3
  [1] 164885   431072   3
  [2] 164885   164885   24
  [3] 431072   431072   5
  </code></pre>