ixfx
    Preparing search index...
    • Connect from -> to. Same as connect except you get back the edges as well.

      By default unidirectional, meaning a connection is made only from->to. Use bidi option to set a bidirection connection, adding also to->from.

      Returns a result of { graph, edges }, where graph is the new DirectedGraph and edges is an array of Edges. One for unidirectional, or two for bidirectional.

      Parameters

      • graph: Readonly
      • options: Readonly

      Returns { edges: Readonly<{ id: string; weight?: number }>[]; graph: Readonly }