MCPcopy
hub / github.com/jwasham/practice-python / Node

Class Node

linked_lists/node.py:1–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Node(object):
2 def __init__(self, data=None, next=None):
3 self.data_ = data
4 self.next_ = next
5
6 def get_data(self):
7 return self.data_
8
9 def set_data(self, data):
10 self.data_ = data
11
12 def get_next(self):
13 return self.next_
14
15 def set_next(self, next):
16 self.next_ = next
17
18 def __str__(self):
19 return str(self.data_)

Callers 2

pushMethod · 0.90
appendMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected