title: How to make infinity value in C? (especially integer value)
body: <p>I made weight directed graph, just like this</p>
  
  <pre><code>6
  0 3 4 INFINITY INFINITY INFINITY
  INFINITY 0 INFINITY 7 INFINITY INFINITY
  INFINITY 3 0 5 11 INFINITY
  INFINITY INFINITY INFINITY 0 6 3
  INFINITY INFINITY INFINITY INFINITY 0 4
  INFINITY INFINITY INFINITY INFINITY INFINITY 0
  </code></pre>
  
  <p>at first, I used some integer value to express infinity like 99 or 20000.
  but when I find it is wrong, v5 -> v4 must be express infinity but some integer value is expressed.</p>
  
  <blockquote>
    <p>ex : Shortest Path from v2 to v3  : v2  v3 (length : 200000)</p>
  </blockquote>
  
  <p>is there any infinity value for integer?</p>
  
  <p>friend of mine says ~(1&lt;&lt;31) but it doesn't work</p>