curl -s 'https://www.unum.cloud/docs/ustore/go/graphs.md' | claude -p "How would this fit my code?"
A graph collection, created with ModalityGraph, indexes every edge from both of its vertices, and an Edge is laid out as the source, target and identifier keys the ABI puts on its tapes, so a slice of edges crosses as three strided columns. GraphReadEdges answers Neighborhoods, the degree of every vertex and its edges, outgoing ones before incoming ones, and Edge.Neighbor names the other end.
A VertexRole gives the whole batch one role and VertexRoles gives every vertex its own.
EndVertices turns every vertex into the inclusive start of a range ending before its end vertex, one per task, or removes the vertices alone when empty.
Predicate admits or passes over the vertices of every page.
RolesRoles names the role of every vertex in a batch: a VertexRole the whole batch shares, or VertexRoles, one per vertex; nil stands for VertexRoleAny.
StructEdgeEdge is a source, a target and an edge identifier, laid out as the three keys the library puts on its tapes, so a slice of edges crosses as three strided columns.1
func (neighborhoods Neighborhoods) Degree(
index uint,
) (uint32, bool)
EdgesEdges views the edges of vertex index in the arena: with both roles the outgoing ones first, sorted by target, then the incoming ones, sorted by source.