Exemple #1
0
assert __name__ == "__main__"
from dotsearch import report
import argparse

parser = argparse.ArgumentParser(description="Runs graph search "
                                 "algorithms over a .dot graph file.")
parser.add_argument("dotfile", action="store")
cfg = parser.parse_args()

from simple_ai.methods import (
    breadth_first_search,
    astar_search,
    beam_search_best_first,
    beam_search_breadth_first,
    simulated_annealing,
)

print "Running algorithms and writting report.html..."
report(infile=cfg.dotfile,
       algorithms=[
           breadth_first_search,
           astar_search,
           beam_search_best_first,
           beam_search_breadth_first,
           simulated_annealing,
       ],
       outfile="report.html",
       with_images=True)
Exemple #2
0
assert __name__ == "__main__"
from dotsearch import report
import argparse
parser = argparse.ArgumentParser(description="Runs graph search "
"algorithms over a .dot graph file.")
parser.add_argument("dotfile", action="store")
cfg = parser.parse_args()


from simple_ai.methods import (breadth_first_search,
                        astar_search,
                        beam_search_best_first,
                        beam_search_breadth_first,
                        simulated_annealing,
                       )


print "Running algorithms and writting report.html..."
report(infile=cfg.dotfile,
       algorithms=[
            breadth_first_search,
            astar_search,
            beam_search_best_first,
            beam_search_breadth_first,
            simulated_annealing,
           ],
       outfile="report.html",
       with_images=True)
Exemple #3
0
assert __name__ == "__main__"
from dotsearch import report
import argparse
parser = argparse.ArgumentParser(description="Runs graph search "
                                 "algorithms over a .dot graph file.")
parser.add_argument("dotfile", action="store")
cfg = parser.parse_args()

from simpleai.search import breadth_first, astar, beam, simulated_annealing

print "Running algorithms and writting report.html..."
report(infile=cfg.dotfile,
       algorithms=[
           breadth_first,
           astar,
           beam,
           simulated_annealing,
       ],
       outfile="report.html",
       with_images=True)
from __future__ import print_function

assert __name__ == "__main__"
from dotsearch import report
import argparse
parser = argparse.ArgumentParser(description="Runs graph search "
"algorithms over a .dot graph file.")
parser.add_argument("dotfile", action="store")
cfg = parser.parse_args()


from simpleai.search import breadth_first, astar, beam, simulated_annealing


print("Running algorithms and writting report.html...")
report(infile=cfg.dotfile,
       algorithms=[
            breadth_first,
            astar,
            beam,
            simulated_annealing,
           ],
       outfile="report.html",
       with_images=True)