title: Algorithm for checking transitivity of relation?
body: <p>I need to check if relation is transitive or not?</p>
  
  <p>Would you please suggest some algorithm to check the transitivity of relations?</p>
  
  <p>I am storing relation as a <strong>boolean matrix</strong> there is <strong>1</strong> if elements are related other wise <strong>0</strong> like in graphs.</p>
  
  <p>Thanks.</p>