openanalysis.data_structures module¶
-
class
openanalysis.data_structures.
DataStructureBase
(name, file_path)¶ Base class for implementing Data Structures
-
delete
(item)¶ Delete the item from Data Structure While removing, delete item from self.graph and modify the edges if necessary :param item: item to be deleted
-
draw
(nth=None)¶
-
find
(item)¶ Finds the item in Data Structure :param item: item to be searched :return: True if item in self else False also can implement __contains__(self,item)
-
get_graph
(rt)¶
-
get_root
()¶ Return the root for drawing purpose :return:
-
insert
(item)¶ Insert item to Data Structure While inserting, add a edge from parent to child in self.graph :param item: item to be added
-