MAIDR JavaScript API
    Preparing search index...
    • Splits an edge's title into the two nodes it joins.

      A quoted name may hold -> or -- itself, so every place the operator appears is tried, and the first split whose sides both name a node is taken.

      Parameters

      • title: string

        The edge's title, e.g. a->b or a:out--b

      • names: Set<string>

        Every node's name

      Returns { tail: string; head: string; directed: boolean } | null

      The ends and whether the edge is directed, or null when no split names two nodes