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

Method __repr__

graphs/page_rank.py:30–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 self.outbound.append(node)
29
30 def __repr__(self):
31 return f"<node={self.name} inbound={self.inbound} outbound={self.outbound}>"
32
33
34def page_rank(nodes, limit=3, d=0.85):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected