Liking cljdoc? Tell your friends :D

jungerer.algo

Functions to find a path and calculate a score of a graph.

Functions to find a path and calculate a score of a graph.
raw docstring

barycenter-scorerclj

(barycenter-scorer graph)

Returns an edu.uci.ics.jung.algorithms.scoring.BarycenterScorer for graph. It can be used for calculating scores for each node according to the sum of its distances to all other nodes.

Returns an edu.uci.ics.jung.algorithms.scoring.BarycenterScorer for graph. It
can be used for calculating scores for each node according to the sum of its
distances to all other nodes.
sourceraw docstring

betweenness-centralityclj

(betweenness-centrality graph)

Returns an edu.uci.ics.jung.algorithms.scoring.BetweennessCentrality for graph. It can be used for calculating betweenness centrality for each node and edge in the graph.

Returns an edu.uci.ics.jung.algorithms.scoring.BetweennessCentrality for
graph. It can be used for calculating betweenness centrality for each node and
edge in the graph.
sourceraw docstring

bf-pathclj

(bf-path graph src-node dst-node)

Returns a vector of the nodes on the shortest path from src-node to dst-node, in order of their occurrence on this path, using Breadth-First Search (BFS) algorithm. Returns an empty vector if the path does not exist.

Returns a vector of the nodes on the shortest path from src-node to dst-node,
in order of their occurrence on this path, using Breadth-First Search (BFS)
algorithm. Returns an empty vector if the path does not exist.
sourceraw docstring

closeness-centralityclj

(closeness-centrality graph)
(closeness-centrality graph distance)

Returns an edu.uci.ics.jung.algorithms.scoring.ClosenessCentrality for graph. It can be used for calculating scores for each node based on the mean distance to each other node.

Returns an edu.uci.ics.jung.algorithms.scoring.ClosenessCentrality for graph.
It can be used for calculating scores for each node based on the mean distance
to each other node.
sourceraw docstring

degree-scorerclj

(degree-scorer graph)

Returns an edu.uci.ics.jung.algorithms.scoring.DegreeScorer for graph. It can be used for calculating scores for each node equal to its degree.

Returns an edu.uci.ics.jung.algorithms.scoring.DegreeScorer for graph. It can
be used for calculating scores for each node equal to its degree.
sourceraw docstring

dijkstra-pathclj

(dijkstra-path graph src-node dst-node)

Returns a vector of the nodes on the shortest path from src-node to dst-node, in order of their occurrence on this path, using Dijkstra's single-source- shortest-path algorithm. Returns an empty vector if the path does not exist.

Returns a vector of the nodes on the shortest path from src-node to dst-node,
in order of their occurrence on this path, using Dijkstra's single-source-
shortest-path algorithm. Returns an empty vector if the path does not exist.
sourceraw docstring

eigenvector-centralityclj

(eigenvector-centrality graph)

Returns an edu.uci.ics.jung.algorithms.scoring.EigenvectorCentrality for graph. It can be used for calculating eigenvector centrality for each node in the graph. The 'eigenvector centrality' for a node is defined as the fraction of time that a random walk(er) will spend at that node over an infinite time horizon. Assumes that the graph is strongly connected.

Returns an edu.uci.ics.jung.algorithms.scoring.EigenvectorCentrality for
graph. It can be used for calculating eigenvector centrality for each node in
the graph. The 'eigenvector centrality' for a node is defined as the fraction
of time that a random walk(er) will spend at that node over an infinite time
horizon. Assumes that the graph is strongly connected.
sourceraw docstring

hitsclj

(hits graph)

Returns an edu.uci.ics.jung.algorithms.scoring.HITS for graph. It can be used for calculating hub and authority scores to each node depending on the topology of the network.

Returns an edu.uci.ics.jung.algorithms.scoring.HITS for graph. It can be used
for calculating hub and authority scores to each node depending on the
topology of the network.
sourceraw docstring

page-rankclj

(page-rank graph)
(page-rank graph alpha)

Returns an edu.uci.ics.jung.algorithms.scoring.PageRank for graph. It can be used for calculating scores for each node according to the PageRank algorithm.

Returns an edu.uci.ics.jung.algorithms.scoring.PageRank for graph. It can be
used for calculating scores for each node according to the PageRank algorithm.
sourceraw docstring

ScoreAvailablecljprotocol

scoreclj

(score this node)

Returns a score of node calculated with scorer algorithm. Note that type of the returned score is different depending on the scorer.

Returns a score of node calculated with scorer algorithm. Note that type of
the returned score is different depending on the scorer.
source

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

× close