U
    ª9%eó  ã                   @   s¬   d Z ddlZddlmZ e ddddddd	d
dg	¡Zee 	e¡ƒD ] \Z
ZeD ]Ze
eje d< qNqBejeddZe ¡ \ZZejeeed e d¡ e ¡  e ¡  dS )zä
========================
DAG - Topological Layout
========================

This example combines the `topological_generations` generator with
`multipartite_layout` to show how to visualize a DAG in topologically-sorted
order.
é    N)ÚfÚa)r   Úb)r   Úe)r   Úc)r   Úd)r   r   )r   r   )r   Úg)Úhr   Úlayer)Z
subset_key)ÚposÚaxzDAG layout in topological order)Ú__doc__ZnetworkxÚnxZmatplotlib.pyplotZpyplotZpltZDiGraphÚGÚ	enumerateZtopological_generationsr
   ZnodesÚnodeZmultipartite_layoutr   ZsubplotsZfigr   Zdraw_networkxÚ	set_titleZtight_layoutÚshow© r   r   ú}/var/www/html/Darija-Ai-API/env/lib/python3.8/site-packages/../../../share/doc/networkx-3.1/examples/graph/plot_dag_layout.pyÚ<module>   s.   
÷ÿ
