U
    ?h                     @   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   p/var/www/html/venv/lib/python3.8/site-packages/../../../share/doc/networkx-3.1/examples/graph/plot_dag_layout.py<module>   s.   

