Skip to content

Commit 5929621

Browse files
committed
Added docs
1 parent bdb09f6 commit 5929621

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pydatastructs/utils/misc_util.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,24 @@ def __str__(self):
260260
return str((self.key, self.data))
261261

262262
class SkipNode(Node):
263+
"""
264+
Represents node in linked lists.
265+
266+
Parameters
267+
==========
268+
269+
key
270+
Any valid identifier to uniquely
271+
identify the node in the skip list.
272+
data
273+
Any valid data to be stored in the node.
274+
next
275+
Reference to the node lying just forward to the current node.
276+
Optional, by default, None.
277+
down
278+
Reference to the node lying just below the current node.
279+
Optional, by default, None.
280+
"""
263281

264282
__slots__ = ['key', 'data', 'next', 'down']
265283

0 commit comments

Comments
 (0)