lexiographically smallest TOPOSORT

Revision en1, by iamdumb, 2015-07-04 15:36:35

I was doing this question from spoj.And as far as I have understood it,it requires to find lexiographically smallest toposorting of a DAG.I have studied toposorting from here but implementing it leads me to different toposorting.Can anybody explain me is there any way to find lexiographical toposort ?

Tags toposort, graphs

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English iamdumb 2015-07-04 15:36:35 423 Initial revision (published)