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

class openanalysis.data_structures.DataStructureVisualization(ds)

Class for visualizing data structures in GUI Using GTK+ 3

action_clicked_cb(button)
on_stage_destroy(x)
run()