"i have a text file which include many graphs (stored as vertices v and edges
e.in the following format: t # 0 v 0 0 v 1 0 v 2 0 v 3 0 e 0 1 3 e 1 2 3 t # 1 v 0 0 and so on. t # 0 means first graph. t # 1 means second graph and so on. v 2 0 means vertex number2, label 0 e 1 2 3 means that we have an edge between vertex 1 and vertex 2 and the label of the edge is 3 what i need is to write a c++ program that read the graphs from this text file and store it in matrix data structure for further processing. thank you
Answers
Answered by
0
Nice question ask your teacher
Similar questions