SUNIL GUTTA

SUNIL GUTTA

  • NA
  • 1k
  • 386.3k

using Adjacancy Matrix and Path Matrix ? code

Oct 22 2013 5:37 AM
Hi

please look into the requirement ..

i am confused looking at this ? and redirect me :)

is taht possible ? warshalls algorithm .. i am confused . . firt 4 steps looks cools remaining ooh gosh 
  • Display a friendly greeting to the user
  • Prompt the user for the name of a file specifying a graph
  • Accept that file name Attempt to open the file
  • On failure, notify the user and exit
  • Read the data from the file
  • Create the Adjacency matrix
  • Display the Adjacency Matrix
  • Create the Path Matrix
  • Display the Path Matrix
  • *Use Warshalls Algorithm

Test Files
"testVert.txt"
1 2 3 4 5 6 7 8 9
"testEdge.txt"
(1,2) (2,6) (6,2) (5,1) (6,5) (3,2) (6,3) (3,7) (8,7) (9,9)

Ty mate 
cheers 
have  a  nice day