Updated Searching

Updated the searching algorithim so that it will automatically generate
nodes and edges.