20. Graph API: Representations
• Adjacency List
• Incidence List
• Adjacency Matrix
• Incidence Matrix
Nodes Edges
e1 e2 .. e5
A S N … N
B D S … D
… … … … …
E N N … S
60. Your Graphs in Loom
core.async
Single Static Assignment Form
Titanium-Loom
Github
And more!
61. Titanium Loom
• Titanium by Clojurewerkz
(titanium.clojurewerkz.org)
• Built on top of Aurelius Titan
(thinkaurelius.github.com/titan)
• Storage backends: Cassandra, HBase,
BerkeleyDB Java Edition
• No graph visualization
62. Titanium Loom
(let [in-mem-graph!
(open {"storage.backend” "inmemory"})]!
(tg/transact!!
(let [a (nodes/create! {:name "Node A"})!
b (nodes/create! {:name "Node B"})!
c (nodes/create! {:name "Node C"})!
e1 (edges/connect! a b)!
e2 (edges/connect! b c)!
e3 (edges/connect! c a)]))!
(titanium->loom in-mem-graph))