Bayes net topoligical sort done by 'graph_algorithms' library