Hi
I m trying to implement adjacency matrix.
typedef boost::adjacency_matrix<boost::undirectedS> Graph;
Graph(N);

Now here can the N be a variable as what i want is create  graph by varying the
value of N which taken as an input  from user.

Following is the snippet of my code...

int main(int argc, char *argv[])
{
   int SIZE;
   cout<<"\n Enter the matrix size (nxn) :-";
   cin>>SIZE;
   Graph g(SIZE);
...................
....................
return 0;
}

And the runtime error is as follows :-
Assertion failed: false, file BoostLib/boost_1_34_1/boost/graph/adjacency_matrix.hpp, line 941

Same code works fine in case of adjacency_list but in case of adjacency_matrix it is giving run time error.
What could be the reason for this...

Thanks
Abhishek Vyas
Tata Consultancy Services
Mailto: abhishek.v@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you