Try   HackMD

DOT Language







%0



1

1

prev

next





2

2

prev

next



2->1





4

4

prev

next



4->1







5

5

prev

next



5->4





6

6

prev

next



6->4







7

7

prev

next



7->6





1







_graph_name_

我是標題


A

我是開始



B

label
是文字



A->B





C

shape
指定形狀
(這是box)



B->C





D

D



C->D





F

n
會換行



G

$mathmode$
要用LaTeX處理



F->G





G->B






H

我是結束



G->H






E

diamond
菱形



D->E





E->C






E->F






2







_graph_name_

example


H

HEAD



A

node0



H->A





C

node2



H->C





A->H





B

node1



A->B





B->A





B->C





C->H





C->B





3







_graph_name_

example


H

HEAD



A

node0



H->A





C

node2



H->C





A->H





B

node1



A->B





B->A





B->C





C->H





C->B





4







%0



A

A



B

B



A->B





D

D



A->D





5







%0



node1

node1



node2

node2



node1->node2





node0

node0



node0->node1





node4

node4



node5

node5



node4->node5





6







%0



a

a



d

d



a->d





e

e



a->e





f

f



a->f





b

b



b->d





b->e





b->f





c

c



c->d





c->e





c->f





7







G


cluster_1

hash_key 1


cluster_2

hash_key 2


cluster_3

hash_key 3



map

hlist_head.first

 

 

 

 

 

 

 

 



hn1

hlist_node

pprev

next



map:ht1->hn1





hn3

hlist_node

pprev

next



map:ht5->hn3





null1
NULL



null2
NULL



hn1:s->map:ht1





hn2

hlist_node

pprev

next



hn1:next->hn2





hn2:next->null1





hn2:s->hn1:s





hn3:s->map:ht5





hn3:next->null2





8







G



list_head

list_head

first



node_1

dll_node_1

prev

next



list_head->node_1:m





node_2

dll_node_2

prev

next



node_1:n->node_2:m





NULL_1
NULL



node_1:p->NULL_1





node_2:p->node_1:m





node_3

dll_node_3

prev

next



node_2:n->node_3:m





node_3:p->node_2:m





NULL_2
NULL



node_3:n->NULL_2





9







%0



A

A



B

B



A->B





A->B





C

C



B->C





B->C





D

D



C->D





C->D





10







structs



struct5

prev

new node

next



struct2

node1



struct5:next->struct2





struct0

start



struct0->struct2





struct1

last



struct4

node3



struct1->struct4





struct3

node2



struct2->struct3






struct3->struct4






struct4->struct2






11







structs



struct5

prev

new node

next



struct2

node1



struct5:next->struct2





struct0

start



struct0->struct2





struct1

last



struct4

node3



struct1->struct4





struct2->struct5:data





struct3

node2



struct2->struct3






struct3->struct4






struct4->struct2











%0




a

a



b

b



a->b





c

c



b->c





d

d



c->d





e

e



d->e





ran

ran



Ref:

  1. Graphviz-用指令來畫關係圖

  2. Official manual







G



list_head

list_head

first



node_1

hlist_node_1

pprev

next




list_head:n->node_1:m





node_1:p->list_head:n





node_2

hlist_node_2

pprev

next




node_1:n->node_2:m





node_2:p->node_1:n





NULL
NULL



node_2:n->NULL





node_n

hlist_node_n

pprev

next