
    Gd                        d Z ddlZddlmZ  ej        g d          Z e ej	        e                    D ]\  Z
ZeD ]Ze
ej        e         d<    ej        ed          Z ej                    \  ZZ ej        eee           e                    d           e                                  ej                     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)
subset_key)posaxzDAG layout in topological order)__doc__networkxnxmatplotlib.pyplotpyplotpltDiGraphG	enumeratetopological_generationsr   nodesnodemultipartite_layoutr   subplotsfigr   draw_networkx	set_titletight_layoutshow     8share/doc/networkx-3.1/examples/graph/plot_dag_layout.py<module>r%      s#              BJ
 
 
  I8b8;;<< ' 'LE5  ' '!&g' bQ7333
#,..R   # # # # . / / /       




r#   