X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mtp_graph.cc;h=7781fc10e8923828c1ac2787955ea399856d12c7;hb=f988e5f5189924bfb8522969f8b2b42262981b0f;hp=473d13ecb5a99bf6ec713fc9aca3500591ed3bbd;hpb=2c79f2f3d73d7dc7a8c799ad9386484a5a684ca4;p=mtp.git diff --git a/mtp_graph.cc b/mtp_graph.cc index 473d13e..7781fc1 100644 --- a/mtp_graph.cc +++ b/mtp_graph.cc @@ -153,6 +153,7 @@ void MTPGraph::print(ostream *os) { void MTPGraph::print_dot(ostream *os) { (*os) << "digraph {" << endl; + (*os) << " rankdir=\"LR\";" << endl; (*os) << " node [shape=circle,width=0.75,fixedsize=true];" << endl; (*os) << " edge [color=gray,arrowhead=open]" << endl; (*os) << " " << _source->id << " [peripheries=2];" << endl; @@ -314,9 +315,9 @@ void MTPGraph::find_best_paths(scalar_t *lengths) { // Let's be a bit paranoid ASSERT(is_dag()); - // We use call find_shortest_path here to set properly the distance, - // so that we can make all the edge lengths positive at the first - // iteration. + // We call find_shortest_path here to set properly the distances to + // the source, so that we can make all the edge lengths positive at + // the first iteration. find_shortest_path(); do {