This library provides a set of data structures that will work on python objects similar to collections framework in java
Project description
obify
A python library that will provide all algorithms working on object
This library can be used following way
from obify import heap
class Node():
def __init__(self, data):
self.data = data
def compare(self, node):
if self.data < node.data:
return -1
elif self.data > node.data:
return 1
else:
return 0
def test_heap():
h = heap.MinHeap()
h.insert(Node(12))
h.insert(Node(2))
h.insert(Node(20))
h.remove()
h.insert(Node(0))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
obify-0.0.3.tar.gz
(2.8 kB
view hashes)