Skip to content

Instantly share code, notes, and snippets.

@xlfe
xlfe / datomic_traverser.clj
Created August 31, 2025 01:36 — forked from nathell/datomic_traverser.clj
Datomic traverser
(ns datomic-traverser
(:require [clojure.set :as set]
[datomic.api :as d]
[loom.graph :as graph]
[loom.alg :as alg]))
;; An implementation of Loom graph backed by a Datomic db, where nodes are
;; Datomic entities and edges are determined by datoms of attribute type ref,
;; filtered with forward-attr-blacklist and backward-attr-whitelist.
;; node-subset, when present, will restrict the nodes and edges to those