Function createInnovationHistory

  • Creates an object to track new innovations created through mutation.

    Returns {
        addInnovation: ((c) => number);
        getInnovation: ((c) => number);
    }

    • addInnovation: ((c) => number)
        • (c): number
        • Track this connection and give it the next innovation number

          Parameters

          Returns number

    • getInnovation: ((c) => number)
        • (c): number
        • Get or create a new innovation to track the current connection.

          Parameters

          Returns number

Generated using TypeDoc