Does anyone know where I can find an implementation of an algorithm to convert an activity node graph (aka activity-on-node graph) to an event node graph (aka activiy-on-arrow graph)?
If you don’t know what I am talking about, take a look here: http://www.brpreiss.com/books/opus7/html/page581.html
Please provide a working algo in your answer.
Thanks in advance.
The easiest thing to do is replace every node
vin your original graph with two nodes,v_inandv_out, connected by a single edge with weight equal to the original vertex weight. Then replace all the original edges(u, v)with edges fromu_outtov_inof zero weight.