\documentclass{article}
\usepackage[francais]{babel}


%-------------- geometrie de la feuille (optionnel)
\usepackage[height=240mm,width=180mm]{geometry}


%-------------- encodage a definir :
\usepackage[utf8]{inputenc} % unix utf8
%\usepackage[latin1]{inputenc} % linux europeen de l'ouest
%\usepackage[ansinew]{inputenc} % windows
%\usepackage[applemac]{inputenc} % mac


%-------------- pour l'inclusion des figures :
\usepackage[pdftex]{graphicx}  % sortie pdf
%\usepackage[dvips]{graphicx}  % sortie ps

%-------------- fonte
\usepackage[upright]{fourier}
% \usepackage{lmodern} % ou tout autre fonte


%-------------- extension professor desiree :
\usepackage[xcas]{pro-graphes}


%-------------- entete et pied de page
\usepackage{fancyhdr}
\usepackage{lastpage}

\lhead{}
\chead{\begin{LARGE} Pro-graphes  \end{LARGE}}
\rhead{}
\lfoot{D. LE FUR}
\cfoot{\thepage / \pageref{LastPage}}
\rfoot{}
\renewcommand{\footrulewidth}{0.4pt}
\pagestyle{fancy}




%-----------------------------------------------------------------------

\begin{document}

\section{pro-grapheproba}

\begin{pro-grapheproba}{1}
["A","B"],
[ //----------------- debut matrice
["$@dfrac{1}{4}$","$@dfrac{3}{4}$"],
["$@dfrac{7}{9}$","$@dfrac{2}{9}$"]
],//----------------- fin matrice
[ // -------------------------------- debut des options
["titre-gauche","Graphe probabiliste"]
] // -------------------------------- fin des options
\end{pro-grapheproba}

\newpage

\section{pro-tableg}

\begin{pro-tableg}{1}
[
["M"],
[ //----------------- debut matrice
[1,2,3],
[4,5,6],
[7,8,9]
]  //----------------- fin matrice
]
\end{pro-tableg}

\newpage

\section{pro-tablegp}

\begin{pro-tablegp}{1}
[
["M"],
[ //----------------- debut matrice
[1,2,3],
[4,5,6],
[7,8,9]
], //----------------- fin matrice
3
]
\end{pro-tablegp}

\newpage

\section{pro-graphedessin}

\begin{pro-graphedessin}{1}
["A","B","C","D"],
[ //----------------- debut matrice
[0,1,0,1],
[1,0,1,1],
[0,1,0,1],
[1,1,1,0]
],//----------------- fin matrice
[ // -------------------------------- debut des options
["titre-gauche","Graphe par d@'efaut (non orient@'e, non pond@'er@'e)"]
]  // -------------------------------- fin des options
\end{pro-graphedessin}


\newpage

\section{pro-greuler}

\begin{pro-greuler}{1}
["A","B","C","D"],
[ //----------------- debut matrice
[0,1,0,1],
[1,0,1,1],
[0,1,0,1],
[1,1,1,0]
]  //----------------- fin matrice
\end{pro-greuler}

\newpage

\section{Graphe color{\'e}}

\begin{pro-graphedessin}{2}
["A","B","C","D"],
[ //----------------- debut matrice
[0,1,0,1],
[1,0,1,1],
[0,1,0,1],
[1,1,1,0]
],//----------------- fin matrice
[ // -------------------------------- debut des options
["titre-gauche","Graphe colori@'e"],
["graphe-colorie",["rouge","jaune","rouge","bleu"]]
]  // -------------------------------- fin des options
\end{pro-graphedessin}


\newpage

\section{Graphe pond{\'e}r{\'e}}

\begin{pro-graphedessin}{3}
["A","B","C","D","E","G","F"],
[ //----------------- debut matrice
[0,5,7,0,0,0,0],
[5,0,0,8,15,6,0],
[7,0,0,10,15,0,0],
[0,8,10,0,0,10,20],
[0,15,15,0,0,0,5],
[0,6,0,10,0,0,0],
[0,0,0,20,5,0,0]
],//----------------- fin matrice
[ // -------------------------------- debut des options
["titre-gauche","Graphe pond@'er@'e"],
["type-graphe",["pondere"]]
]  // -------------------------------- fin des options
\end{pro-graphedessin}


\newpage

\section{pro-dijkstra}


\begin{pro-dijkstra}{1}
["A","B","C","D","E","G","F"],
[ //----------------- debut matrice
[0,5,7,0,0,0,0],
[5,0,0,8,15,6,0],
[7,0,0,10,15,0,0],
[0,8,10,0,0,10,20],
[0,15,15,0,0,0,5],
[0,6,0,10,0,0,0],
[0,0,0,20,5,0,0]
]  //----------------- fin matrice
\end{pro-dijkstra}


\newpage

\section{Graphe orient{\'e}}


\begin{pro-graphedessin}{4}
["A","B","C","D","E"],
[ //----------------- debut matrice
[1,1,0,1,0],
[0,1,1,1,1],
[0,1,1,0,0],
[1,1,0,1,1],
[1,0,0,1,1]
],//----------------- fin matrice
[ // -------------------------------- debut des options
["titre-gauche","Graphe orient@'e"],
["type-graphe",["oriente"]]
]  // -------------------------------- fin des options
\end{pro-graphedessin}

\newpage

\section{Graphe orient{\'e} non pond{\'e}r{\'e}}


\begin{pro-graphedessin}{5}
["A","B","C","D","E","F"],
[ //----------------- debut matrice
[2,1,0,2,0,3],
[0,0,0,3,1,0],
[0,5,0,0,0,1],
[0,1,0,0,7,0],
[6,1,0,3,1,0],
[4,0,0,2,0,0]
],//----------------- fin matrice
[ // -------------------------------- debut des options
["titre-gauche","Graphe orient@'e pond@'er@'e"],
["type-graphe",["oriente","pondere"]]
]  // -------------------------------- fin des options
\end{pro-graphedessin}



\newpage

\section{Repositionnement des noeuds}

\begin{pro-graphedessin}{6}
["A","B","C","D","E","F"],
[ //----------------- debut matrice
[0,0,0,0,4,0],
[2,0,0,0,0,3],
[0,9,0,2,0,6],
[9,0,2,0,0,3],
[0,0,0,4,0,0],
[6,3,6,0,0,0]
],//----------------- fin matrice
[ // -------------------------------- debut des options
["titre-gauche","Graphe orient@'e pond@'er@'e"],
["type-graphe",["oriente","pondere"]]
]  // -------------------------------- fin des options
\end{pro-graphedessin}


\begin{pro-graphedessin}{7}
["A","B","C","D","E","F"],
[ //----------------- debut matrice
[0,0,0,0,4,0],
[2,0,0,0,0,3],
[0,9,0,2,0,6],
[9,0,2,0,0,3],
[0,0,0,4,0,0],
[6,3,6,0,0,0]
],//----------------- fin matrice
[ // -------------------------------- debut des options
["titre-gauche","Graphe orient@'e pond@'er{\'e}@'e"],
["type-graphe",["oriente","pondere"]],
["position-noeuds",[[-1,2],[4,3],[4,-2],[0,-3],[-3,-1],[2,0]]]
]  // -------------------------------- fin des options
\end{pro-graphedessin}




\end{document}
