Skip to content

MaxcutOutput

Bases: BaseModel

The output of the Maxcut application

Source code in q3as/app/maxcut.py
class MaxcutOutput(BaseModel):
    """
    The output of the Maxcut application
    """

    s: List[InputNode]
    "Nodes in S"
    t: List[InputNode]
    "Nodes in T"
    edges: List[Tuple[InputNode, InputNode, float]]
    "The list of edges that need to be cut"

    def __hash__(self):
        return hash(self.model_dump_json())

edges: List[Tuple[InputNode, InputNode, float]] instance-attribute

The list of edges that need to be cut

s: List[InputNode] instance-attribute

Nodes in S

t: List[InputNode] instance-attribute

Nodes in T