On this page:
graph-index-kind/  c
graph-has-index?
graph-indexes
graph-index
graph-index-create
graph-index-drop

8.3 Indices🔗ℹ

value

graph-index-kind/c

 : "A contract defining the set of suport index types."

predicate

(graph-has-index? graph index-kind)  boolean?

  graph : graph?
  index-kind : graph-index-kind/c
Return #t if graph supports an index of kind index-kind.

procedure

(graph-indexes graph)  (listof graph-index-kind/c)

  graph : graph?
Return a list of the index kinds supported by the graph.

procedure

(graph-index graph index-kind)

  (or/c (hash/c any/c (listof statement?)) #f)
  graph : graph?
  index-kind : graph-index-kind/c
Return the index maintained by graph, of kind index-kind if it is supported, else #f.

procedure

(graph-index-create graph index-kind)  void?

  graph : graph?
  index-kind : graph-index-kind/c
Create a new index in graph, of kind index-kind, if one does not already exist.

procedure

(graph-index-drop graph index-kind)  void?

  graph : graph?
  index-kind : graph-index-kind/c
Remove an index in graph, of kind index-kind, if it exist.