MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

data_structures/heap/min_heap.py:6–8  ·  view source on GitHub ↗
(self, name, val)

Source from the content-addressed store, hash-verified

4
5class Node:
6 def __init__(self, name, val):
7 self.name = name
8 self.val = val
9
10 def __str__(self):
11 return f"{self.__class__.__name__}({self.name}, {self.val})"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected