Woof, coding learning!
- push(self, e)
- pop(self), return lastobj
- top(self), return firstobj
- len
- insert(self, obj, index=0)
- remove(self, index)
- find(self, obj), return index
- reverse(self)
- len
- iter
- top(self), return firstobj
- pop(self), return lastobj
- len
- insert(self, ind, item)
- edit(self, ind, item)
- pop(self), return index and obj
- len
- in
Represent a graph with adjacency list
- add_edge(self, s, t, w=1)
- print with graphviz
Represent a graph with matrix
- add_edge(self, s, t, w=1)
- print with graphviz
- dist(self, s, t)
Initiate with a source vertex
- dist(self, t)