Debian Codegraph @

texmf-dist/doc/latex/visualpstricks/Source/noeud2.tex

raw
1
2
3 \SbSSCT{Les Matrices de n\oe uds}{Mathematicals and graphs}
4
5 \psset{fillcolor=yellow,fillstyle=solid}
6
7 \SbSbSSCT{Création de la matrice de noeuds}{Creation of the diagram}
8
9 \begin{center}
10 \begin{tabular}{|c|c|}
11 \hline
12 \psmatrix
13 A & B \\
14 C & D\\
15 \endpsmatrix
16 & \parbox[b]{5cm}{
17 \BSS{psmatrix} \BSI{psmatrix}{pst-node}
18
19 A \& B \textbackslash{}\textbackslash{}
20
21 C \& D \textbackslash{}\textbackslash{}
22
23 \BSS{endpsmatrix} \BSI{endpsmatrix}{pst-node}}
24 \\
25 \hline
26 \end{tabular}
27 \end{center}
28
29
30
31 \SbSbSSCT{Les 10 types de noeuds}{10 types of nodes}
32
33
34 \begin{tabular}{|c|c|c|c|c|}
35 \hline
36 \psmatrix [mnode= R] R \\ \endpsmatrix
37 &
38 \psmatrix [mnode= r] r \\ \endpsmatrix
39 &
40 \psmatrix [mnode= C] \\ \endpsmatrix
41 &
42 \psmatrix [mnode= f] \\ \endpsmatrix
43 &
44 \psmatrix [mnode= p] p \\ \endpsmatrix
45 \\\hline
46 [\RDD{mnode}{\red = R}] R \RDI{mnode}{pst-node} & [{\red mnode= r}] r & [{\red mnode= C}] C & [{\red mnode= f}] f & [{\red mnode= p}] p \\
47
48 \hline
49 \psmatrix [mnode= circle] circle \\ \endpsmatrix
50 &
51 \psmatrix [mnode= oval] oval \\ \endpsmatrix
52 &
53 \psmatrix [mnode=dia] dia \\ \endpsmatrix
54 &
55 \psmatrix [mnode= tri] tri \\ \endpsmatrix
56 &
57 \psmatrix [mnode= dot] dot \\ \endpsmatrix
58 \\\hline
59 [{\red mnode= circle}] circle & [{\red mnode= oval}] oval & [{\red mnode=dia}] dia & [{\red mnode= tri}] tri & [{\red mnode= dot}] dot
60 \\\hline
61 \end{tabular}
62
63 \bigskip
64 \begin{tabular}{|c|c|} \hline
65 \BS{psmatrix}[\RDD{mnode}=tri] & \BS{psmatrix}[\RDD{emnode}=tri] \RDI{emnode}{pst-node}\\
66 A \& B \& \& D \BS{}\BS{} & A \& B \& \& D \BS{}\BS{}\\
67 \& \& C \& E \BS{}\BS{} & \& \& C \& E \BS{}\BS{} \\
68 \BS{endpsmatrix} & \BS{endpsmatrix} \\
69 \hline
70 \psmatrix[mnode=tri]
71 A & B & & D\\
72 & & C & E\\
73 \endpsmatrix
74 &
75 \psmatrix[emnode=tri]
76 A & B & & D\\
77 & & C & E\\
78 \endpsmatrix \\
79 \hline
80 \end{tabular}
81
82
83
84 %-----------------------------------------------------
85 \SbSbSSCT{Liaison des noeuds}{Connection of the nodes}
86
87 \begin{center}
88 \begin{tabular}{|c|}
89 \hline
90 \psmatrix[rowsep=.2cm]
91 %mnode= R & mnode= r & mnode= C & mnode= f & mnode= p \\
92 [mnode= R] R & [mnode= r] r &[mnode= C] C & [mnode= f] f & [mnode= p] p \\
93 %\hline
94 %mnode= circle & mnode= oval & mnode=dia & mnode= tri & mnode= dot \\
95 [mnode= circle] circle & [mnode= oval] oval & [mnode=dia] dia & [mnode= tri] tri & [mnode= dot] dot \\
96 \ncline[linecolor=red]{1,2}{2,1}
97 \ncline[linestyle=dotted]{1,3}{2,2}
98 \ncline[linestyle=dotted]{1,4}{2,3}
99 \ncline[linestyle=dotted]{1,5}{2,4}
100 %\ncline[linecolor=red]{1,6}{2,5}
101
102 \ncline[linecolor=blue]{1,1}{2,1}
103 \ncline[linestyle=dotted]{1,2}{2,2}
104 \ncline[linestyle=dotted]{1,3}{2,3}
105 \ncline[linestyle=dotted]{1,4}{2,4}
106 \ncline[linestyle=dotted]{1,5}{2,5}
107
108 \ncline[linecolor=cyan]{1,1}{2,2}
109 \ncline[linestyle=dotted]{1,2}{2,3}
110 \ncline[linestyle=dotted]{1,3}{2,4}
111 \ncline[linestyle=dotted]{1,4}{2,5}
112 \endpsmatrix
113 \\ \hline
114 \parbox[b]{8cm}{
115 \BS{}ncline[linecolor=red]\AC{1,2}\AC{2,1}
116
117 \BS{}ncline[linecolor=blue]\AC{1,1}\AC{2,1}
118
119 \BS{}ncline[linecolor=cyan]\AC{1,1}\AC{2,2} }
120 \\
121 \hline
122 \end{tabular}
123 \end{center}
124
125
126
127 %\newpage
128 %--------------------------------------------------------------
129 \SbSbSSCT{\'Etiquettes sur les liaisons}{Labels on connections}
130
131 \begin{center}
132 \begin{tabular}{|c|c|c|c|} \hline
133 & & & \\
134 \psmatrix[rowsep=1cm]
135 [mnode= dot] R & [mnode= dot] r \\
136 [mnode= dot] circle & [mnode= dot] oval \\
137 \ncline[linecolor=red]{1,2}{2,1} <{\red A}
138 \ncline[linecolor=blue]{1,2}{2,2}<{\blue B}
139 \ncline[linecolor=green]{2,1}{2,2}<{\green C}
140 \endpsmatrix
141 &
142 \psmatrix[rowsep=1cm]
143 [mnode= dot] R & [mnode= dot] r \\
144 [mnode= dot] circle & [mnode= dot] oval \\
145 \ncline[linecolor=red]{1,2}{2,1}_{\red A}
146 \ncline[linecolor=blue]{1,2}{2,2}_{\blue B}
147 \ncline[linecolor=green]{2,1}{2,2}_{\green C}
148 \endpsmatrix
149 &
150 \psmatrix[rowsep=1cm]
151 [mnode= dot] R & [mnode= dot] r \\
152 [mnode= dot] circle & [mnode= dot] oval \\
153 \ncline[linecolor=red]{1,2}{2,1}>{\red A}
154 \ncline[linecolor=blue]{1,2}{2,2}>{\blue B}
155 \ncline[linecolor=green]{2,1}{2,2}>{\green C}
156 %\ncline[linecolor=red]{1,2}{2,1}>{C}
157 \endpsmatrix
158 &
159 \psmatrix[rowsep=1cm]
160 [mnode= dot] R & [mnode= dot] r \\
161 [mnode= dot] circle & [mnode= dot] oval \\
162 \ncline[linecolor=red]{1,2}{2,1}^{\red A}
163 \ncline[linecolor=blue]{1,2}{2,2}^{\blue B}
164 \ncline[linecolor=green]{2,1}{2,2}^{\green C}
165 %\ncline[linecolor=red]{1,2}{2,1}^{D}
166 \endpsmatrix\\
167 \hline
168 \BS{}ncline\AC{1,2}\AC{2,1}<\AC{A} & \BS{}ncline\AC{1,2}\AC{2,1}\_\AC{A} & \BS{}ncline\AC{1,2}\AC{2,1}>\AC{A} & \BS{}ncline\AC{1,2}\AC{2,1}$\wedge$\AC{A}\\
169 \BS{}ncline\AC{1,2}\AC{2,2}<\AC{B} & \BS{}ncline\AC{1,2}\AC{2,2}\_\AC{B} & \BS{}ncline\AC{1,2}\AC{2,2}>\AC{B} & \BS{}ncline\AC{1,2}\AC{2,2}$\wedge$\AC{B}\\
170 \BS{}ncline\AC{2,1}\AC{2,2}<\AC{C} & \BS{}ncline\AC{2,1}\AC{2,2}\_\AC{C}& \BS{}ncline\AC{2,1}\AC{2,2}>\AC{C} & \BS{}ncline\AC{2,1}\AC{2,2}$\wedge$\AC{C}\\
171 \hline
172
173 \end{tabular}
174 \end{center}
175
176
177
178 \SbSbSSCT{Les autres paramètres}{Other parameters }
179
180
181 %\psset{fillcolor=green}
182
183
184
185 \begin{center}
186 \begin{tabular}{|c|c|}
187 \hline
188 \multicolumn{2}{|c|}{name}\\ \hline
189 \psmatrix[mnode= oval]
190 [name=A] A & [name=B] B\\
191 [name=C] C & [name=D] D\\
192 \endpsmatrix
193 \ncline[linecolor=red]{A}{D}
194 \pcline[linecolor=blue](B)(C)
195 &
196 \parbox[b]{8cm}{
197 \BS{}psmatrix[mnode= oval]
198
199 [{\red \RDD{name}=A}] A \& [{\red name=B}] B \BS{}\BS{} %\textbackslash{}\textbackslash{} \\
200 \RDI{name}{pst-node}
201
202 [{\red name=C}] C \& [{\red name=D}] D \textbackslash{}\textbackslash{}
203
204 \BS{}endpsmatrix
205
206 \BS{}ncline[linecolor=red]{\red \AC{A}\AC{D}}
207
208 \BS{}pcline[linecolor=blue]{\red (B)(C)}}
209 \\ \hline
210 \end{tabular}
211 \end{center}
212
213
214 %-------------------------------------------------------------------
215
216 \bigskip
217
218 \begin{center}
219 \begin{tabular}{|c|c|}\hline
220 \multicolumn{2}{|c|}{mcol \hspace{1cm} {\blue \dft{}: mcol=c } }\\ \hline
221
222 \psmatrix[rowsep=.2cm,colsep=.2cm]
223 paramètres & Position du noeud \\
224 mcol=l & [mnode= oval,mcol=l] A \\
225 mcol=c & [mnode= oval,mcol=c] B \\
226 mcol=r & [mnode= oval,mcol=r] C \\
227 \endpsmatrix
228 &
229 \parbox[b]{6cm}{
230
231 \BS{}psmatrix[rowsep=.2cm,colsep=.2cm]
232
233 paramètres \& Position du noeud \textbackslash{}\textbackslash{}
234
235 mcol=l \& [mnode= oval,\RDD{mcol}{\red =l}] A \textbackslash{}\textbackslash{} \RDI{mcol}{pst-node}
236
237 mcol=c \& [mnode= oval,{\red mcol=c}] B \textbackslash{}\textbackslash{}
238
239 mcol=r \& [mnode= oval,{\red mcol=r}] C \textbackslash{}\textbackslash{}
240
241 \BS{}endpsmatrix } \\ \hline
242 \end{tabular}
243 \end{center}
244
245 %=========================================================
246
247 \bigskip
248
249
250 \begin{center}
251 \begin{tabular}{|c|}
252 \hline
253 \multicolumn{1}{|c|}{radius }\\ \hline
254 \psmatrix
255 [mnode=C] A & [mnode=C, radius=1cm] B
256 \endpsmatrix
257 \\ \hline
258 \BS{}psmatrix
259
260 [mnode=C] \& [mnode=C, \RDD{radius}{\red =1cm}] \RDI{radius}{pst-node}
261
262 \BS{}endpsmatrix
263 \\
264 \hline
265 \end{tabular}
266 \end{center}
267
268
269
270 %-------------------------------------------------------------------------
271 \bigskip
272
273 \begin{center}
274 \begin{tabular}{|c|}
275 \hline
276 \multicolumn{1}{|c|}{mnodesize \hspace{1cm} {\blue \dft{} : mnodesize= -1pt } }
277 \\ \hline
278 \psmatrix[mnode=oval,rowsep=.2cm,colsep=.2cm]
279 A & B & [mnodesize=4cm] C & D & E\\
280 \endpsmatrix
281 \\ \hline
282 \parbox[b]{10cm}{
283 \BS{}psmatrix[mnode=oval,rowsep=.2cm,colsep=.2cm]
284
285 A \& B \& [ \RDD{mnodesize}{\red =4cm}] C \& D \& E
286 \RDI{mnodesize}{pst-node}
287
288 \BS{}endpsmatrix }
289 \\
290 \hline
291 \end{tabular}
292 \end{center}
293
294 %-------------------------------------------------------------
295 \bigskip
296
297
298 \begin{center}
299 \begin{tabular}{|c|}
300 \hline
301 colsep \hspace{1cm} {\blue \dft{} : colsep= 1.5cm}
302 \\ \hline
303 \psmatrix[mnode=oval]
304 A & [colsep=0cm] B & [colsep=4cm] C & D & E\\
305 \endpsmatrix
306 \\ \hline
307 A \& [ \RDD{colsep}{\red =0cm}] B \& [{\red colsep=4cm}] C \& D \& E \textbackslash{}\textbackslash{} \RDI{colsep}{pst-node}
308 \\
309 \hline
310 \end{tabular}
311 \end{center}
312
313
314 %-------------------------------------------------------
315
316 \bigskip
317
318 \begin{center}
319 \begin{tabular}{|c|c|c|}
320 \hline
321 \multicolumn{3}{|c|}{rowsep \hspace{.5cm} {\blue \dft{} : rowsep= 1.5cm } }
322 \\ \hline
323 \psmatrix[mnode=oval]
324 A \\
325 B \\
326 C \\
327 \endpsmatrix
328 &
329 \psmatrix[mnode=oval,rowsep=0cm]
330 A \\
331 B \\
332 C \\
333 \endpsmatrix
334 &
335 \psmatrix[mnode=oval,rowsep=1cm]
336 A \\
337 B \\
338 C \\
339 \endpsmatrix
340 \\
341 \hline
342 \RDD{rowsep}{\red =0cm} \RDI{rowsep}{pst-node}
343 &
344 {\red rowsep=1cm}
345 &
346 \dft{}
347 \\
348 \hline
349 \end{tabular}
350 \end{center}
351
352 %-------------------------------------------------------
353 \bigskip
354
355 \begin{center}
356 \begin{tabular}{|c|c|}
357 \hline
358 \multicolumn{2}{|c|}{\BSS{psspan} \BSI{pspan}{pst-node} }\\ \hline
359 \psmatrix[mnode=oval,rowsep=.2cm,colsep=.2cm]
360 A & B & C & D & E\\
361 A & B & C \psspan{2} & D\\
362 \endpsmatrix
363 &
364 \parbox[b]{6cm}{
365 A \& B \& C \& D \& E \BS{} \BS{}
366
367 A \& B \& C {\red \BS{}psspan\AC{2}} \& D \BS{} \BS{} }
368 \\
369
370 \hline
371 \end{tabular}
372 \end{center}
373
374
375
376 \psset{fillcolor=yellow}
377
378