'What is the stream index for node? 0..n-1
Return -1 if node not found.'

def getNodeIndex(self, node):

    if (self.p == (-1)):
        self.fillBuffer()
    for (i, t) in enumerate(self.nodes):
        if (t == node):
            return i
    return (-1)
