U
    ª9%eÌ  ã                	   @   s„  d Z ddlZddlmZ ddlmZ ddlZ	e 
d¡0Zee d¡ƒZee d¡ƒZee d¡ƒZW 5 Q R X e	jedd	Ze	jedd	Ze	jedd	Ze	jed
ddZe ¡  e d¡ e d¡ e	jeeddd e d¡ e d¡ e	jeeddd e d¡ e d¡ e	jeeddd e d¡ e d¡ e	jeeee ¡ ƒddd e	jeedd e	jeedd e ¡  e ¡  dS )zê
=======
Sampson
=======

Sampson's monastery data.

Shows how to read data from a zip file and plot multiple frames.

The data file can be found at:

- https://github.com/networkx/networkx/blob/main/examples/drawing/sampson_data.zip
é    N)ÚBytesIOzsampson_data.zipzsamplike1.txtzsamplike2.txtzsamplike3.txtú	)Ú	delimiteréd   é­   )Z
iterationsÚseedéÝ   Z	samplike1é2   F)Ú	node_sizeÚwith_labelséÞ   Z	samplike2éß   Z	samplike3éà   zsamplike1,2,3)Zedgelistr
   r   g      Ð?)Úalpha)Ú__doc__ÚzipfileÚior   ÚStringIOZmatplotlib.pyplotZpyplotZpltZnetworkxÚnxÚZipFileÚzfÚreadÚe1Úe2Ze3Zread_edgelistZG1ZG2ZG3Zspring_layoutÚposZclfZsubplotÚtitleZdrawÚlistÚedgesZdraw_networkx_edgesZtight_layoutÚshow© r   r   ú|/var/www/html/Darija-Ai-API/env/lib/python3.8/site-packages/../../../share/doc/networkx-3.1/examples/drawing/plot_sampson.pyÚ<module>   s:   







