def METHOD_NAME(n):
    if n in tmp:
        return
    tmp.add(n)
    for item in n.items:
        print(item)
    for o, req in n.simple_connections:
        METHOD_NAME(o)
    for o, req in n.gated_connections:
        METHOD_NAME(o)