
    GdP
                         d dl Zd dl mZmZmZmZmZ  G d de          Z G d de          Z G d de          Z	 G d	 d
e          Z
 G d de          Zd Z G d d          Z e            ZdS )    N)DiGraphGraphMultiDiGraph
MultiGraphPlanarEmbeddingc                       e Zd ZdZdS )LoopbackGraphnx-loopbackN__name__
__module____qualname____networkx_plugin__     Ilib/python3.11/site-packages/networkx/classes/tests/dispatch_interface.pyr	   r	              'r   r	   c                       e Zd ZdZdS )LoopbackDiGraphr
   Nr   r   r   r   r   r      r   r   r   c                       e Zd ZdZdS )LoopbackMultiGraphr
   Nr   r   r   r   r   r      r   r   r   c                       e Zd ZdZdS )LoopbackMultiDiGraphr
   Nr   r   r   r   r   r      r   r   r   c                       e Zd ZdZdS )LoopbackPlanarEmbeddingr
   Nr   r   r   r   r   r   !   r   r   r   c                    t          | t                    rt          |           S t          | t                    rt	          |           S t          | t
                    rt          |           S t          | t                    rt          |           S t          | t                    rt          |           S t          dt          |                      )NzUnsupported type of graph: )
isinstancer   r   r   r   r   r   r   r   r   r	   	TypeErrortype)graphs    r   convertr!   %   s    %)) .&u---%&& +#E***%$$ )!%(((%!! &u%%%% $U###
?$u++??
@
@@r   c                   
   e Zd Zej        j        j        ej        j        j	        ej        j
        j        ej        j        j        ej        j        j        dZd Zedddd            Zeddd            Zed             ZdS )	LoopbackDispatcher)inter_community_edgesis_tournamentmutual_weightscore_sequencetournament_matrixc                     t          t          |          rt          t          |          j        S || j        v r| j        |         j        S t          |          N)hasattrnxgetattr
_orig_funcnon_toplevelAttributeError)selfitems     r   __getattr__zLoopbackDispatcher.__getattr__<   sT    2t 	02t$$//4$$$$T*55T"""r   N)namec                    | S r*   r   )r    weightr4   s      r   convert_from_nxz"LoopbackDispatcher.convert_from_nxD   s    r   c                    | S r*   r   )objr4   s     r   convert_to_nxz LoopbackDispatcher.convert_to_nxH   s    
r   c                 4    | D ]}t          |d          sJ d S )N
add_marker)r+   )itemsr2   s     r   on_start_testsz!LoopbackDispatcher.on_start_testsL   s6      	/ 	/D4......	/ 	/r   r*   )r   r   r   r,   	communityqualityr$   
algorithms
tournamentr%   structuralholesr&   r'   r(   r/   r3   staticmethodr7   r:   r>   r   r   r   r#   r#   3   s        !#!5!K1?6D-2A]5G L# # # D     \ #'     \ / / \/ / /r   r#   )networkxr,   r   r   r   r   r   r	   r   r   r   r   r!   r#   
dispatcherr   r   r   <module>rG      s^       N N N N N N N N N N N N N N( ( ( ( (E ( ( (( ( ( ( (g ( ( (( ( ( ( ( ( ( (( ( ( ( (< ( ( (( ( ( ( (o ( ( (A A A/ / / / / / / /@  !!


r   