Liking cljdoc? Tell your friends :D

asami.analytics

Functions for graph analytics in Asami Index graphs

Functions for graph analytics in Asami Index graphs
raw docstring

entity-node?clj/s

(entity-node? n)

Returns true if a node represents an entity. No access to the storage type, so look for namespaced keywords.

Returns true if a node represents an entity.
No access to the storage type, so look for namespaced keywords.
sourceraw docstring

subgraph-entitiesclj/s

(subgraph-entities {:keys [spo] :as graph})

Inputs: [{:keys [spo], :as graph} :- GraphType] Returns: [#{s/Any}]

Finds subgraph groups for index graphs. Each subgraph group is a seq of entity nodes for the nodes in a subgraph.

Inputs: [{:keys [spo], :as graph} :- GraphType]
Returns: [#{s/Any}]

Finds subgraph groups for index graphs.
 Each subgraph group is a seq of entity nodes for the nodes in a subgraph.
sourceraw docstring

subgraph-from-nodeclj/s

(subgraph-from-node {:keys [spo pos] :as graph} node)

Inputs: [{:keys [spo pos], :as graph} :- GraphType node :- s/Any] Returns: #{s/Any}

Finds a single subgraph for an index graph. Returns all entity IDs that appear in the same subgraph as the provided node.

Inputs: [{:keys [spo pos], :as graph} :- GraphType node :- s/Any]
Returns: #{s/Any}

Finds a single subgraph for an index graph. Returns all entity IDs that appear
 in the same subgraph as the provided node.
sourceraw docstring

subgraphsclj/s

(subgraphs graph)

Inputs: [graph :- GraphType] Returns: [GraphType]

Returns all subgraphs for a given graph

Inputs: [graph :- GraphType]
Returns: [GraphType]

Returns all subgraphs for a given graph
sourceraw docstring

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

× close