demo/grid_graph_demo.cc
changeset 1763 49045f2d28d4
parent 1693 269f0cbfbcc8
child 1775 f19e108cb286
equal deleted inserted replaced
2:efd970a676fe 3:c6129c32c7a9
    43 
    43 
    44   FilteredGraph::EdgeMap<bool> path(filtered, false);
    44   FilteredGraph::EdgeMap<bool> path(filtered, false);
    45   
    45   
    46   for (GridGraph::Node node = stop; 
    46   for (GridGraph::Node node = stop; 
    47        node != start; node = bfs.predNode(node)) {
    47        node != start; node = bfs.predNode(node)) {
    48     path[bfs.pred(node)] = true;
    48     path[bfs.predEdge(node)] = true;
    49   }
    49   }
    50   
    50   
    51   graphToEps(filtered, "grid_graph.eps").scaleToA4().
    51   graphToEps(filtered, "grid_graph.eps").scaleToA4().
    52     title("Grid graph").
    52     title("Grid graph").
    53     copyright("(C) 2005 LEMON Project").
    53     copyright("(C) 2005 LEMON Project").