Skip to content

requesting renaming from generateSucc -> getSucc #1

@stheid

Description

@stheid

/**
* Generate the successors for a given node.
*
* @param node
* The node we want to expand.
* @return A list of possible next steps.
*/
public List<INewNodeDescription<N, A>> generateSuccessors(N node) throws InterruptedException;

The name of the function implies that it is only called in the generation process of the graph. However the function is called successfully with the same value and the algorithms seem to expect the same result.

This means i have to memoize the function to avoid double calculations.

Here is an example usage that shows that the function is not only used in the generation

https://github.com/starlibs/AILibs/blob/b355727b4cdeb5eda09a8fac15eca731bd8be5fd/JAICore/jaicore-search/src/main/java/ai/libs/jaicore/search/algorithms/mdp/mcts/GraphBasedMDP.java#L66

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions