ixfx
    Preparing search index...
    • Gets the connection, if it exists between a and b in graph. If it doesn't exist, undefined is returned. Use hasConnection for a simple true/false if edge exists.

      Parameters

      • graph: Readonly

        Graph

      • a: string | Readonly<{ id: string }>
      • b: string | Readonly<{ id: string }>

      Returns undefined | Readonly<{ a: string; b: string; weight?: number }>