nextspace
    Preparing search index...

    Function sessionIndexById

    • The sessions a graph draws on, in the order they first appear, with each mapped to its position in that order.

      A series graph folds in every conversation under a topic, so its nodes carry different provenance.conversationId values and which session raised what is worth seeing. A single event's graph has at most one, and there is nothing to distinguish — so this returns an empty map and the caller draws the graph in one colour.

      A session is not a person: this is the one provenance field safe to render to everyone, and the sessions are numbered by first appearance because a conversation id means nothing to a reader. See GraphNodeProvenance.

      Parameters

      • payload: Partial<ConceptGraphPayload>

      Returns Map<string, number>

      Conversation id to zero-based session index, or an empty map for a graph from one session.