5  Redes-Pstricks's construction.                      I initiate

The type of exit it is necessary to define it like:

EXAMPLE 1:  

EXAMPLE 2:  

 

To use the package:

 \usepackage {pst-all}

Code example 1.-

  
  %%1%% $$\begin{array}{cccccc}
 %%   &  1,1 &  1,5 &  2,3 &  3,1 & 3,5 \\ 
 %%  uno &  12 &  2 &  3 &   &  \\ 
 %%  dos &   &   &  4 &   & 6 \\ 
 %%  tres &  1 &   &   &  3 & 7 \\ 
 %%  cuatro &  65 &   &   &   &  \\ 
 %%  cinco &   &   &  5 &   & 7 \\ 
 %% \end{array}$$
  
 %% It is possible to use as couple(par). Of psmatrix: [fillstyle=solid, fillcolor=yellow] 
 %% it is possible to use inside counterfoil: & [mnode=circle, name=nombre] X & ... 
 %% Also \\ [2cm]
 %%\everypsbox {\scriptstyle} % Defines size boxes from here
 %% mnode can be: R, r, C, f, p, circle, oval, day, tri, dot, none 
 %% In the cabin 1,1 of the grid writes two numbers separated by two points
 %% The first number (nodes): not  implemented 
 %% The second number (arches): 0=flechas straight lines, 1=flechas strokes with the bow 
 %%\ncarc[arcangle=12,border=3pt,linestyle=dotted,linecolor=red]{2,1}{1,2}^[npos=.7]{g}_[npos=.3]{d}
 %\scaleboxto(8cm,8cm){ 
 $$\psmatrix[mnode=circle,colsep=1cm,rowsep=1cm]
  uno &   &   &   & dos \\ 
    &   & tres \\ 
  cuatro &   &   &   & cinco \\ 
 \endpsmatrix
 \psset{shortput=nab,nodesep=3pt,arrows=->,labelsep=3pt}
 \small
 \nccircle{1,1}{0.5cm}_[npos=.2]{12}
 \ncline{1,1}{1,5}^{2}
 \ncline{1,1}{2,3}^{3}
 \ncline{1,5}{2,3}^{4}
 \ncline{1,5}{3,5}^{6}
 \ncline{2,3}{1,1}^{1}
 \ncline{2,3}{3,1}^{3}
 \ncline{2,3}{3,5}^{7}
 \ncline{3,1}{1,1}^{65}
 \ncline{3,5}{2,3}^{5}
 \nccircle{3,5}{0.5cm}_[npos=.2]{7}
 $$
 %}  %%final de \scaleboxto  
Code example 2.-
  
 %%1%% $$\begin{array}{cccccc}
 %%  :1 &  1,1 &  1,5 &  2,3 &  3,1 & 3,5 \\ 
 %%  uno &  12 &  2 &  3 &   &  \\ 
 %%  dos &   &   &  4 &   & 6 \\ 
 %%  tres &  1 &   &   &  3 & 7 \\ 
 %%  cuatro &  65 &   &   &   &  \\ 
 %%  cinco &   &   &  5 &   & 7 \\ 
 %% \end{array}$$
  
 %% It is possible to use as couple(par). Of psmatrix: [fillstyle=solid, fillcolor=yellow] 
 %% it is possible to use inside counterfoil: & [mnode=circle, name=nombre] X & ... 
 %% Also \\ [2cm]
 %%\everypsbox {\scriptstyle} % Defines size boxes from here
 %% mnode can be: R, r, C, f, p, circle, oval, day, tri, dot, none 
 %% In the cabin 1,1 of the grid writes two numbers separated by two points
 %% The first number (nodes): not implemented 
 %% The second number (arches): 0=flechas straight lines, 1=flechas strokes with the bow 
 %%\ncarc[arcangle=12,border=3pt,linestyle=dotted,linecolor=red]{2,1}{1,2}^[npos=.7]{g}_[npos=.3]{d}
 %\scaleboxto(8cm,8cm){ 
 $$\psmatrix[mnode=circle,colsep=1cm,rowsep=1cm]
  uno &   &   &   & dos \\ 
    &   & tres \\ 
  cuatro &   &   &   & cinco \\ 
 \endpsmatrix
 \psset{shortput=nab,nodesep=3pt,arrows=->,labelsep=3pt}
 \small
 \nccircle{1,1}{0.5cm}_[npos=.2]{12}
 \ncarc[arcangle=12]{1,1}{1,5}^{2}
 \ncarc[arcangle=12]{1,1}{2,3}^{3}
 \ncarc[arcangle=12]{1,5}{2,3}^{4}
 \ncarc[arcangle=12]{1,5}{3,5}^{6}
 \ncarc[arcangle=12]{2,3}{1,1}^{1}
 \ncarc[arcangle=12]{2,3}{3,1}^{3}
 \ncarc[arcangle=12]{2,3}{3,5}^{7}
 \ncarc[arcangle=12]{3,1}{1,1}^{65}
 \ncarc[arcangle=12]{3,5}{2,3}^{5}
 \nccircle{3,5}{0.5cm}_[npos=.2]{7}
 $$
 %}  %%final de \scaleboxto