Boost logo

Boost Users :

From: abhishek.v_at_[hidden]
Date: 2007-09-10 03:16:44


Hi

I have a function which take an input from the user whether the graph is
directed or undirected.
I'm declaring graph as follows :-

typedef adjacency_list < vecS, vecS, undirectedS, property <
vertex_name_t,std::string >, property < edge_name_t, std::string > > Graph;
Graph g;

Now here the parameter in Bold need to be varied as the user input changes.
One method could be i could have two different function
say,CreateDirected()
and CreateUndirected(). But this is not working in my case as i want the
declaration should be global so that i can use it throughout my
application. Please help.

Abhishek Vyas
Tata Consultancy Services
Mailto: abhishek.v_at_[hidden]
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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net