Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 617 Bytes

README.md

File metadata and controls

35 lines (31 loc) · 617 Bytes

Search

plotting of graphs, a star search, greedy best search and bfs and dfs lib

importing the libs

import search.breath_first_search as bfs
import search.depth_first_search as dfs
import search.a_star_search as a_star
import search.greedy_best_first_search as gbfs

creating nodes

# a star search
a = a_star.Node(parameters)
# same applys for others

joining nodes

# a is a node
a.n = [other nodes]

searching

# Ex
bfs.bfs(a, h)

Running

python <name>.py

License

apache 2.0