ixfx
    Preparing search index...
    • Get all the edges for a vertex.

      // Iterate all edges for vertex with id '0'
      for (const edge of edgesForVertex(graph, '0')) {
      }

      If the vertex has no edges, no values are returned. If the vertex was not found in the graph, an error is thrown.

      Parameters

      • graph: Graph
      • context: string | Readonly<{ id: string }> | undefined

      Returns Generator<Readonly<{ a: string; b: string; weight?: number }>, void, unknown>

      Throws an error if context was not found, if it's undefined or graph is invalid.