def viewNoForNodes(nodes):
    viewNos = {node.viewNo for node in nodes}
    assert (1 == len(viewNos))
    return next(iter(viewNos))
def viewNoForNodes(nodes):
    viewNos = {node.viewNo for node in nodes}
    assert (1 == len(viewNos))
    return next(iter(viewNos))