+
    �°³j  ã                   ó„   € R t ^ RItRR.t]P                  ! RR7      R 4       t]P                  ! RRR7      R	R l4       tR# )
zUnary operations on graphsNÚ
complementÚreverseT)Úreturns_graphc                óœ   a € S P                  4       pVP                  S 4       VP                  V 3R lS P                  4        4       4       V# )a&  Returns the graph complement of G.

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

Returns
-------
GC : A new graph.

Notes
-----
Note that `complement` does not create self-loops and also
does not produce parallel edges for MultiGraphs.

Graph, node, and edge data are not propagated to the new graph.

Examples
--------
>>> G = nx.Graph([(1, 2), (1, 3), (2, 3), (3, 4), (3, 5)])
>>> G_complement = nx.complement(G)
>>> G_complement.edges()  # This shows the edges of the complemented graph
EdgeView([(1, 4), (1, 5), (2, 4), (2, 5), (4, 5)])

c              3   ó`   <"  € T F#  w  rS F  q3V9  g   K  W8w  g   K  W3x € K  	  K%  	  R # 5i)N© )Ú.0ÚnÚnbrsÚn2ÚGs   &   €Úd/home/luca/screen-checking/.venv/lib/python3.14/site-packages/networkx/algorithms/operators/unary.pyÚ	<genexpr>Úcomplement.<locals>.<genexpr>'   s)   øé € ÐW¡‘W�Q»°"Àt¹^ŒÈqÉwŒˆ!�¹‰£ùs   ƒ.—.Ÿ.)Ú	__class__Úadd_nodes_fromÚadd_edges_fromÚ	adjacency)r   ÚRs   f r   r   r      sA   ø€ ð8 	
�‰‹€AØ×Ñ�QÔØ×ÑÜW §¡¤ÓWôð €Hó    )Úpreserve_all_attrsr   c                ó~   € V P                  4       '       g   \        P                  ! R4      hV P                  VR7      # )a	  Returns the reverse directed graph of G.

Parameters
----------
G : directed graph
    A NetworkX directed graph
copy : bool
    If True, then a new graph is returned. If False, then the graph is
    reversed in place.

Returns
-------
H : directed graph
    The reversed G.

Raises
------
NetworkXError
    If graph is undirected.

Examples
--------
>>> G = nx.DiGraph([(1, 2), (1, 3), (2, 3), (3, 4), (3, 5)])
>>> G_reversed = nx.reverse(G)
>>> G_reversed.edges()
OutEdgeView([(2, 1), (3, 1), (3, 2), (4, 3), (5, 3)])

z#Cannot reverse an undirected graph.)Úcopy)Úis_directedÚnxÚNetworkXErrorr   )r   r   s   &&r   r   r   ,   s2   € ð< �=‰=�?Š?Ü×ÒÐDÓEÐEà�y‰y˜dˆyÓ#Ð#r   )T)Ú__doc__Únetworkxr   Ú__all__Ú_dispatchabler   r   r   r   r   Ú<module>r       sV   ðÙ  ã à˜Ð
#€ð ×Ò Ô%ñ ó &ð ðF ×Ò T¸Ô>ó $ó ?ò $r   