Interface SpreadingActivationInput

interface SpreadingActivationInput {
    seedIds: string[];
    getNeighbors: ((nodeId) => {
        id: string;
        weight: number;
    }[] | Promise<{
        id: string;
        weight: number;
    }[]>);
    config?: SpreadingActivationConfig;
}

Properties

seedIds: string[]
getNeighbors: ((nodeId) => {
    id: string;
    weight: number;
}[] | Promise<{
    id: string;
    weight: number;
}[]>)

Get neighbors with edge weights. Can be sync or async.

Type declaration

    • (nodeId): {
          id: string;
          weight: number;
      }[] | Promise<{
          id: string;
          weight: number;
      }[]>
    • Parameters

      • nodeId: string

      Returns {
          id: string;
          weight: number;
      }[] | Promise<{
          id: string;
          weight: number;
      }[]>