alias_api.assign_nodes_to_layer

alias_api.assign_nodes_to_layer(*args, **kwargs)

Overloaded function.

  1. assign_nodes_to_layer(nodes: collections.abc.Sequence[str], layer_name: str) -> int

    Set the layer of the given dag nodes to the specified layer.

    param nodes

    The dag nodes to set the layer.

    type nodes

    List[AlDagNode]

    param layer_name

    The name of the layer to set the nodes to.

    type layer_name

    str

    return

    The status code result Success - all nodes were set to the layer successfully Failure - one or more nodes failed to set the layer InvalidArgument - the layer name is invalid

    rtype

    int(AlStatusCode)

  2. assign_nodes_to_layer(nodes: collections.abc.Sequence[alias_api.AlDagNode], layer_name: str) -> int

    Set the layer of the given dag nodes to the specified layer.

    param nodes

    The dag nodes to set the layer.

    type nodes

    List[AlDagNode]

    param layer_name

    The name of the layer to set the nodes to.

    type layer_name

    str

    return

    The status code result Success - all nodes were set to the layer successfully Failure - one or more nodes failed to set the layer InvalidArgument - the layer name is invalid

    rtype

    int(AlStatusCode)