def METHOD_NAME(self):
    # u -> v(w)
    for u in self.adjList:
        print(
            u,
            "->",
            " -> ".join(str("{}({})".format(v, w)) for v, w in self.adjList[u]),
        )