summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.tex
blob: ac4c40406e9a14b66f6dea8bfe04cf324d3937b7 (plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
\documentclass{report}

\usepackage{adigraph}

\title{Adigraph, V1.3, small working test}
\author{Luca Cappelletti}
\date{March 2018}

\begin{document}
\maketitle
\NewAdigraph{myAdigraph}{
  s:0,0;
  1:2,2;
  3:2,-2;
  2:6,2;
  4:6,-2;
  t:8,0;
}{
  s,1:25;
  s,3:25;
  3,4:25;
  1,2:35;
  2,t:20;
  4,t:30;
  3,1:10;
  4,2:10;
  2,3:15::near start;
  4,1:5::near start;
}

\myAdigraph{}


\myAdigraph{
  s,3,4,2,t:5;
}

\myAdigraph{}{
  2,t,red;
  3,4,blue;
}

\NewAdigraph{mySecondAdigraph}{
  s:3;
  1:3;
  3:3;
  2:3;
  4:3;
  t:3;
}{
  s,1:25;
  s,3:25;
  3,4:25;
  1,2:35;
  2,t:20;
  4,t:30;
  3,1:10;
  4,2:10;
  2,3:15::near start;
  4,1:5::near start;
}

\mySecondAdigraph{}


\mySecondAdigraph{
  s,3,4,2,t:5;
}

\mySecondAdigraph{}{
  2,t,red;
  3,4,blue;
}

\end{document}