class FactorEdge(object): def __init__(self,graph,rootNode): self.graph = graph self.rootNode = rootNode