+
    �°³jf  ã                   ó&   € R t ^ RIt ! R R4      tR# )z@Unit tests for the :mod:`networkx.algorithms.efficiency` module.Nc                   óP   a € ] tR t^t o R tR tR tR tR tR t	R t
R tR	tV tR
# )ÚTestEfficiencyc                óâ   € \         P                  ! 4       V n        V P                  P                  . RO4       \         P                  ! ^4      V n        \         P                  ! ^^4      V n        R# )é   N)r   é   é   )ÚnxÚGraphÚG1Úadd_nodes_fromÚcycle_graphÚG2Úlollipop_graphÚG3©Úselfs   &Új/home/luca/screen-checking/.venv/lib/python3.14/site-packages/networkx/algorithms/tests/test_efficiency.pyÚsetup_methodÚTestEfficiency.setup_method   sE   € ä—(’(“*ˆŒØ�‰×ÑšyÔ)ä—.’. Ó#ˆŒä×#Ò# A qÓ)ˆŽó    c                óX   € \         P                  ! V P                  ^^4      ^ 8X  g   Q hR# )z.
When nodes are disconnected, efficiency is 0
N)r   Ú
efficiencyr
   r   s   &r   Ú"test_efficiency_disconnected_nodesÚ1TestEfficiency.test_efficiency_disconnected_nodes   s#   € ô �}Š}˜TŸW™W a¨Ó+¨qÔ0Ð0Ò0r   c                óT   € \         P                  ! V P                  4      ^ 8X  g   Q hR# )z-
In a disconnected graph the efficiency is 0
N)r   Úlocal_efficiencyr
   r   s   &r   Ú(test_local_efficiency_disconnected_graphÚ7TestEfficiency.test_local_efficiency_disconnected_graph   s!   € ô ×"Ò" 4§7¡7Ó+¨qÔ0Ð0Ò0r   c                óª   € \         P                  ! V P                  ^ ^4      ^8X  g   Q h\         P                  ! V P                  ^ ^4      R8X  g   Q hR# )é    Ng      à?)r   r   r   r   s   &r   Útest_efficiencyÚTestEfficiency.test_efficiency   s@   € Ü�}Š}˜TŸW™W a¨Ó+¨qÔ0Ð0Ð0Ü�}Š}˜TŸW™W a¨Ó+¨uÔ4Ð4Ò4r   c                óT   € \         P                  ! V P                  4      R8X  g   Q hR# )é   Ng«ªªªªªê?)r   Úglobal_efficiencyr   r   s   &r   Útest_global_efficiencyÚ%TestEfficiency.test_global_efficiency    s   € Ü×#Ò# D§G¡GÓ,°Ô5Ð5Ò5r   c                ó’   € \        ^^
4       F6  p\        P                  ! V4      p\        P                  ! V4      ^8X  d   K6  Q h	  R# )zH
Tests that the average global efficiency of the complete graph is one.
N)Úranger   Úcomplete_graphr$   ©r   ÚnÚGs   &  r   Ú%test_global_efficiency_complete_graphÚ4TestEfficiency.test_global_efficiency_complete_graph#   s=   € ô �q˜"–ˆAÜ×!Ò! !Ó$ˆAÜ×'Ò'¨Ó*¨aÖ/Ð/Ð/ó r   c                ó’   € \        ^^
4       F6  p\        P                  ! V4      p\        P                  ! V4      ^8X  d   K6  Q h	  R# )zœ
Test that the local efficiency for a complete graph with at least 3
nodes should be one. For a graph with only 2 nodes, the induced
subgraph has no edges.
N)r(   r   r)   r   r*   s   &  r   Ú$test_local_efficiency_complete_graphÚ3TestEfficiency.test_local_efficiency_complete_graph+   s=   € ô �q˜"–ˆAÜ×!Ò! !Ó$ˆAÜ×&Ò& qÓ)¨QÖ.Ð.Ð.ó r   c                óT   € \         P                  ! V P                  4      R8X  g   Q hR# )zp
Test that the ego graph is used when computing local efficiency.
For more information, see GitHub issue #2710.
Ng«ªªªªªâ?)r   r   r   r   s   &r   Útest_using_ego_graphÚ#TestEfficiency.test_using_ego_graph5   s!   € ô
 ×"Ò" 4§7¡7Ó+¨vÔ5Ð5Ò5r   )r
   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   r   r    r%   r-   r0   r3   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s2   ø‡ € ò*ò1ò1ò5ò6ò0ò/÷6ð 6r   r   )Ú__doc__Únetworkxr   r   © r   r   Ú<module>r?      s   ðÙ Fã ÷46ó 46r   