def METHOD_NAME(self) -> Chain:
    """Builds the graph."""
    # Get root node
    root_node = payload.get_root_node(self)
    if root_node is None:
        raise ValueError("No root node found")
    return root_node.METHOD_NAME()