+
    �°³jï  ã                   ó¾   € R t ^ RIt^ RIHt . ROt]P                  R 4       t]! R4      ]P                  R 4       4       t]! R4      ]P                  R 4       4       t	R# )zDegree centrality measures.N)Únot_implemented_forc                óæ   € \        V 4      ^8:  d   V  Uu/ uF  q^bK  	  up# R\        V 4      R,
          ,          pV P                  4        UUu/ uF  w  rWV,          bK  	  pppV# u upi u uppi )aÊ  Compute the degree centrality for nodes.

The degree centrality for a node v is the fraction of nodes it
is connected to. For directed graphs it is the average number
of in and out edges per node.

Parameters
----------
G : graph
  A networkx graph

Returns
-------
nodes : dictionary
   Dictionary of nodes with degree centrality as the value.

Examples
--------
>>> G = nx.Graph([(0, 1), (0, 2), (0, 3), (1, 2), (1, 3)])
>>> nx.degree_centrality(G)
{0: 1.0, 1: 1.0, 2: 0.6666666666666666, 3: 0.6666666666666666}

For directed graphs, values are in [0, 2] and use the sum of in-degree and
out-degree. Consider `in_degree_centrality` and `out_degree_centrality` for
directed graphs too.

>>> D = nx.DiGraph([(0, 1), (0, 2), (1, 2), (2, 0)])
>>> nx.degree_centrality(D)
{0: 1.5, 1: 1.0, 2: 1.5}

See Also
--------
betweenness_centrality
load_centrality
eigenvector_centrality
in_degree_centrality
out_degree_centrality

Notes
-----
The degree centrality values are normalized by dividing by the maximum
possible degree in a simple graph n-1 where n is the number of nodes in G.

For multigraphs or graphs with self loops the maximum degree might
be higher than n-1 and values of degree centrality greater than 1
are possible.

ç      ð?)ÚlenÚdegree©ÚGÚnÚsÚdÚ
centralitys   &    Új/home/luca/screen-checking/.venv/lib/python3.14/site-packages/networkx/algorithms/centrality/degree_alg.pyÚdegree_centralityr   	   sk   € ôd ˆ1ƒv�„{ÙÓ ™a˜�1’™aÑ Ð àŒs�1‹v˜�|Õ€AØ'(§x¡x¤zÔ2¡z™t˜q�!˜•U’(¡z€JÑ2ØÐùò	 !ùó 3ó   •A(ÁA-Ú
undirectedc                óæ   € \        V 4      ^8:  d   V  Uu/ uF  q^bK  	  up# R\        V 4      R,
          ,          pV P                  4        UUu/ uF  w  rWV,          bK  	  pppV# u upi u uppi )a’  Compute the in-degree centrality for nodes.

The in-degree centrality for a node v is the fraction of nodes its
incoming edges are connected to.

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

Returns
-------
nodes : dictionary
    Dictionary of nodes with in-degree centrality as values.

Raises
------
NetworkXNotImplemented
    If G is undirected.

Examples
--------
>>> G = nx.DiGraph([(0, 1), (0, 2), (0, 3), (1, 2), (1, 3)])
>>> nx.in_degree_centrality(G)
{0: 0.0, 1: 0.3333333333333333, 2: 0.6666666666666666, 3: 0.6666666666666666}

See Also
--------
degree_centrality, out_degree_centrality

Notes
-----
The degree centrality values are normalized by dividing by the maximum
possible degree in a simple graph n-1 where n is the number of nodes in G.

For multigraphs or graphs with self loops the maximum degree might
be higher than n-1 and values of degree centrality greater than 1
are possible.
r   )r   Ú	in_degreer   s   &    r   Úin_degree_centralityr   C   sk   € ôT ˆ1ƒv�„{ÙÓ ™a˜�1’™aÑ Ð àŒs�1‹v˜�|Õ€AØ'(§{¡{¤}Ô5¡}™t˜q�!˜•U’(¡}€JÑ5ØÐùò	 !ùó 6r   c                óæ   € \        V 4      ^8:  d   V  Uu/ uF  q^bK  	  up# R\        V 4      R,
          ,          pV P                  4        UUu/ uF  w  rWV,          bK  	  pppV# u upi u uppi )aw  Compute the out-degree centrality for nodes.

The out-degree centrality for a node v is the fraction of nodes its
outgoing edges are connected to.

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

Returns
-------
nodes : dictionary
    Dictionary of nodes with out-degree centrality as values.

Raises
------
NetworkXNotImplemented
    If G is undirected.

Examples
--------
>>> G = nx.DiGraph([(0, 1), (0, 2), (0, 3), (1, 2), (1, 3)])
>>> nx.out_degree_centrality(G)
{0: 1.0, 1: 0.6666666666666666, 2: 0.0, 3: 0.0}

See Also
--------
degree_centrality, in_degree_centrality

Notes
-----
The degree centrality values are normalized by dividing by the maximum
possible degree in a simple graph n-1 where n is the number of nodes in G.

For multigraphs or graphs with self loops the maximum degree might
be higher than n-1 and values of degree centrality greater than 1
are possible.
r   )r   Ú
out_degreer   s   &    r   Úout_degree_centralityr   u   sk   € ôT ˆ1ƒv�„{ÙÓ ™a˜�1’™aÑ Ð àŒs�1‹v˜�|Õ€AØ'(§|¡|¤~Ô6¡~™t˜q�!˜•U’(¡~€JÑ6ØÐùò	 !ùó 7r   )r   r   r   )
Ú__doc__ÚnetworkxÚnxÚnetworkx.utils.decoratorsr   Ú__all__Ú_dispatchabler   r   r   © ó    r   Ú<module>r      s}   ðÙ !ã Ý 9â
P€ð ×Ññ6ó ð6ñr �\Ó"Ø×Ññ-ó ó #ð-ñ` �\Ó"Ø×Ññ-ó ó #ò-r   