Liking cljdoc? Tell your friends :D

asami.common-index

Common elements for the standard indexed graph, and multigraph implementations.

Common elements for the standard indexed graph,
and multigraph implementations.
raw docstring

*stream-fromclj/s

(*stream-from selector all-knowns initial-node)

?clj/s


add-zero-stepclj/s

(add-zero-step os-map index)

Uses the initial object->subject map to add reflexive connections to all nodes

Uses the initial object->subject map to add reflexive connections to all nodes
raw docstring

check-for-transitiveclj/s

(check-for-transitive pred)

Tests if a predicate is transitive. Returns a plain version of the predicate, along with a value to indicate if the predicate is transitive. This value is nil for a plain predicate, or else is a keyword to indicate the kind of transitivity.

Tests if a predicate is transitive.
Returns a plain version of the predicate, along with a value to indicate if the predicate is transitive.
This value is nil for a plain predicate, or else is a keyword to indicate the kind of transitivity.
raw docstring

count-embedded-indexclj/s

(count-embedded-index edx)

Adds up the counts of embedded indexes

Adds up the counts of embedded indexes
raw docstring

count-from-indexclj/smultimethod

Lookup an index in the graph for the requested data and count the results.

Lookup an index in the graph for the requested data and count the results.
raw docstring

counterclj/s


create-o->smapclj/s

(create-o->smap {idx :pos :as graph} p)

Produces a map from objects to subjects for existing edges in the graph for a given predicate.

Produces a map from objects to subjects for existing edges in the graph
for a given predicate.
raw docstring

downstream-fromclj/s

(downstream-from idx get-object-sets-fn all-knowns node)

get-path-betweenclj/s

(get-path-between idx edges-from node? tag s o)

get-transitive-edgesclj/s


get-transitive-edges*clj/s

(get-transitive-edges* os-map)

Retrieves a mapping of all objects to subjects that can be transitively connected by a predicate that was used to retrieve the os-map. os-map: map of objects to subject for existing edges in the graph for a given predicate.

Retrieves a mapping of all objects to subjects that can be transitively connected
by a predicate that was used to retrieve the os-map.
os-map: map of objects to subject for existing edges in the graph for a given predicate.
raw docstring

get-transitive-from-indexclj/smultimethod

Lookup an index in the graph for the requested data, and returns all data where the required predicate is a transitive relationship. Unspecified predicates extend across the graph. Returns a sequence of unlabelled bindings. Each binding is a vector of binding values.

Lookup an index in the graph for the requested data, and returns all data where the required predicate
is a transitive relationship. Unspecified predicates extend across the graph.
Returns a sequence of unlabelled bindings. Each binding is a vector of binding values.
raw docstring

graph-transactclj/s

(graph-transact graph tx-id assertions retractions generated-data)

Common graph transaction operation

Common graph transaction operation
raw docstring

NestedIndexclj/sprotocol

lowest-level-fnclj/s

(lowest-level-fn this)

Returns a function for handling the lowest index level retrieval

Returns a function for handling the lowest index level retrieval

lowest-level-set-fnclj/s

(lowest-level-set-fn this)

Returns a function retrieving a lowest level value as a set

Returns a function retrieving a lowest level value as a set

lowest-level-sets-fnclj/s

(lowest-level-sets-fn this)

Returns a function retrieving all lowest level values as sets

Returns a function retrieving all lowest level values as sets

mid-level-map-fnclj/s

(mid-level-map-fn this)

Returns a function that converts the mid->lowest in a simple map

Returns a function that converts the mid->lowest in a simple map

plainclj/s

(plain pred)

Inputs: [pred :- Predicate] Returns: Predicate

Converts a transitive-structured predicate into a plain one

Inputs: [pred :- Predicate]
Returns: Predicate

Converts a transitive-structured predicate into a plain one
raw docstring

Predicateclj/s


sconjclj/s


second-lastclj/s

(second-last s)

Returns the second-last character in a string.

Returns the second-last character in a string.
raw docstring

simplifyclj/s

(simplify g & ks)

sintoclj/s


step-by-predicateclj/s

(step-by-predicate resolution)

Function to add an extra step to a current resolution. Steps to the 'left' where it finds a new edge where the object is the subject of an existing edge. A single 'step' may traverse multiple edges, if new edges are added during iteration which contain objects that have yet to be processed. resolution: a map of object nodes to sets of subject nodes that they are connected to by the desired predicate

Function to add an extra step to a current resolution. Steps to the 'left' where it finds
a new edge where the object is the subject of an existing edge.
A single 'step' may traverse multiple edges, if new edges are added during iteration which
contain objects that have yet to be processed.
resolution: a map of object nodes to sets of subject nodes that they are connected to by the desired predicate
raw docstring

subvseqclj/s

(subvseq v a b)

A subvec wrapper that drops back to sequences when the seq is not a vector

A subvec wrapper that drops back to sequences when the seq is not a vector
raw docstring

trans-simplifyclj/s

(trans-simplify g tag & ks)

transitive-cache-depthclj/s

Defines how many elements to keep in the transitive cache

Defines how many elements to keep in the transitive cache
raw docstring

upstream-fromclj/s

(upstream-from pos all-knowns node)

zero-stepclj/s

(zero-step tag zero result)

Prepend a zero step value if the tag requests it

Prepend a zero step value if the tag requests it
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close