+
    �°³jn  ã                   óN   € R t ^ RItR.t]P                  ! RR7      RR l4       tR# )z
Spectral bipartivity measure.
NÚspectral_bipartivityÚweight)Ú
edge_attrsc           
     óB  € ^ RI p\        V 4      p\        P                  ! WVR7      pVP                  P                  V4      pVP                  P                  V) 4      pRWg,           ,          pVfK   \        VP                  4       P                  4       VP                  4       P                  4       ,          4      # \        \        V\        \        V4      4      4      4      p	/ p
V F4  pW›,          pVP                  WÌ4      VP                  WÌ4      ,          W«&   K6  	  V
# )u½  Returns the spectral bipartivity.

Parameters
----------
G : NetworkX graph

nodes : list or container  optional(default is all nodes)
  Nodes to return value of spectral bipartivity contribution.

weight : string or None  optional (default = 'weight')
  Edge data key to use for edge weights. If None, weights set to 1.

Returns
-------
sb : float or dict
   A single number if the keyword nodes is not specified, or
   a dictionary keyed by node with the spectral bipartivity contribution
   of that node as the value.

Examples
--------
>>> from networkx.algorithms import bipartite
>>> G = nx.path_graph(4)
>>> bipartite.spectral_bipartivity(G)
1.0

Notes
-----
This implementation uses Numpy (dense) matrices which are not efficient
for storing large sparse graphs.

See Also
--------
color

References
----------
.. [1] E. Estrada and J. A. RodrÃ­guez-VelÃ¡zquez, "Spectral measures of
   bipartivity in complex networks", PhysRev E 72, 046105 (2005)
N)r   g      à?)ÚscipyÚlistÚnxÚto_numpy_arrayÚlinalgÚexpmÚfloatÚdiagonalÚsumÚdictÚzipÚrangeÚlenÚitem)ÚGÚnodesr   ÚspÚnodelistÚAÚexpAÚexpmAÚcoshAÚindexÚsbÚnÚis   &&&          Úg/home/luca/screen-checking/.venv/lib/python3.14/site-packages/networkx/algorithms/bipartite/spectral.pyr   r   
   sß   € óT ä�A‹w€HÜ
×Ò˜!¨fÔ5€AØ�9‰9�>‰>˜!Ó€DØ�I‰I�N‰N˜A˜2Ó€EØ�4•<Õ €EØ‚}ä�U—^‘^Ó%×)Ñ)Ó+¨d¯m©m«o×.AÑ.AÓ.CÕCÓDÐDô ”S˜¤5¬¨X«Ó#7Ó8Ó9ˆØˆÛˆAØ•ˆAØ—J‘J˜qÓ$ t§y¡y°£Õ6ˆB‹Eñ ð ˆ	ó    )Nr   )Ú__doc__Únetworkxr   Ú__all__Ú_dispatchabler   © r!   r    Ú<module>r'      s6   ðñó à!Ð
"€ð ×Ò˜XÔ&ó:ó 'ò:r!   