New:
loom.gen/gen-circle and loom.gen/gen-newman-watts - ring and small-world
(Newman & Watts 1999) graph generators, seeded for reproducibility. Closes #106.loom.gen/gen-barabasi-albert - scale-free graph generator via preferential
attachment (Barabasi & Albert 1999), seeded. Reworks #105 (whose attachment
probability was inverted).loom.alg/clustering-coefficient - local and average clustering coefficient
(Watts & Strogatz 1998).New:
loom.alg/simple-paths - all simple paths between two nodes, with an optional
:max-depth. Closes #111.loom.alg/digraph-all-cycles - all simple cycles in a directed graph
(Johnson's algorithm). Closes #126.Performance:
degeneracy-ordering decrements neighbor degrees directly instead of building
an intermediate map. Closes #108.pre-traverse pushes successors lazily, avoiding O(E) stack growth on dense
graphs (preorder unchanged). Closes #120.First release of the maintained fork, published as net.clojars.savya/loom.
Platform:
deps.edn so loom is usable as a git dependency and via clojure -X:test.Bug fixes:
transpose returned an empty graph under ClojureScript, breaking scc,
strongly-connected?, and every transpose-based operation. Fixes #131.remove-nodes / subgraph threw a null error on digraphs under ClojureScript.
Fixes #134.bf-path-bi ran its two searches in racing threads and could return a
non-shortest path; it is now deterministic.bipartite-color ignored edge direction on digraphs, giving non-deterministic
results for nodes with no outgoing edges. Fixes #118.maximal-cliques on a digraph now throws instead of returning silently-wrong
results. Fixes #128.remove-nodes now prunes the removed nodes' attributes. Fixes #93.weight on an edge dispatches to (weight* g e), honoring the protocol for
graphs whose edges are not determined by their endpoints. Fixes #141.(graph {})) no longer throws.
Fixes #137.Closed issues:
Merged pull requests:
Closed issues:
Merged pull requests:
Closed issues:
Merged pull requests:
Closed issues:
Merged pull requests:
Closed issues:
\(scc ...\) dies with a StackOverflow on large directed graphs #5Closed issues:
Closed issues:
* This Change Log was automatically generated by github_changelog_generator
Can you improve this documentation? These fine people already did:
Aysylu & SavyasachiEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |