My lecturer wrote some code and I have no idea how to read it and google isn't helping, can someone please clarify how this code interacts.
yield Arc(tail_node, head = tail_node - 1, label="1down", cost=1)
Is the method call for the class
class Arc(namedtuple('Arc', 'tail, head, label, cost')):
The class Arc contains no methods, and no __init. I have no clue how these two are interacting since I thought class parameters accepted another class, and it made the current class a subclass or abstract etc.