'Computes actual co-ordiantes of the nodes'

def scale(self, maxx, maxy, nwidth=0, nheight=0, margin=20):

    for src in self.transitions:
        for des in self.transitions[src]:
            if ((self.result[des]['x'] - self.result[src]['x']) == 0):
                self.result[src]['x'] += 0.08
                self.result[des]['x'] -= 0.08
    factorX = (maxx + nheight)
    factorY = (maxy + nwidth)
    for node in self.result:
        self.result[node]['y'] = ((self.result[node]['y'] * factorX) + margin)
        self.result[node]['x'] = ((self.result[node]['x'] * factorY) + margin)
