-
Notifications
You must be signed in to change notification settings - Fork 22
/
lru.dot
59 lines (51 loc) · 1.02 KB
/
lru.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
digraph G {
subgraph cluster_map {
dir=TB
style = filled
color = lightgrey
label = "hash map"
node [style=filled,color=white]
key1
key2
key3
key4
key5
}
subgraph cluster_list {
dir=TB
color = blue
label = "doubly linked list"
node [style=filled];
tuple1
tuple2
tuple3
tuple4
tuple5
}
oldest [shape=Msquare]
newest [shape=Msquare]
newest -> tuple1
key1 -> key2 [style=invis]
key2 -> key3 [style=invis]
key3 -> key4 [style=invis]
key4 -> key5 [style=invis]
key1 -> tuple1
tuple1 -> key1
key2 -> tuple2
tuple2 -> key2
key3 -> tuple3
tuple3 -> key3
key4 -> tuple4
tuple4 -> key4
key5 -> tuple5
tuple5 -> key5
tuple1 -> tuple2
tuple2 -> tuple3
tuple2 -> tuple1
tuple3 -> tuple2
tuple3 -> tuple4
tuple4 -> tuple3
tuple4 -> tuple5
tuple5 -> tuple4
oldest -> tuple5
}