+
    )i	                     N    ^ RI Ht ^ RItR.t]P
                  RR l4       tR tR# )    )defaultdictNk_clique_communitiesc              #    "   V^8  d   \         P                  ! RV R24      hVf   \         P                  ! V 4      pV Uu. uF   p\        V4      V8  g   K  \	        V4      NK"  	  pp\        \        4      pV F#  pV F  pWF,          P                  V4       K  	  K%  	  \         P                  ! 4       pVP                  V4       V FN  p\        WT4       F<  p\        VP                  V4      4      V^,
          8  g   K+  VP                  WX4       K>  	  KP  	  \         P                  ! V4       F  p	\        P                  ! V	!  x  K  	  R# u upi 5i)u  Find k-clique communities in graph using the percolation method.

A k-clique community is the union of all cliques of size k that
can be reached through adjacent (sharing k-1 nodes) k-cliques.

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

k : int
   Size of smallest clique

cliques: list or generator
   Precomputed cliques (use networkx.find_cliques(G))

Returns
-------
Yields sets of nodes, one for each k-clique community.

Examples
--------
>>> G = nx.complete_graph(5)
>>> K5 = nx.convert_node_labels_to_integers(G, first_label=2)
>>> G.add_edges_from(K5.edges())
>>> c = list(nx.community.k_clique_communities(G, 4))
>>> sorted(list(c[0]))
[0, 1, 2, 3, 4, 5, 6]
>>> list(nx.community.k_clique_communities(G, 6))
[]

References
----------
.. [1] Gergely Palla, Imre Derényi, Illés Farkas1, and Tamás Vicsek,
   Uncovering the overlapping community structure of complex networks
   in nature and society Nature 435, 814-818, 2005,
   doi:10.1038/nature03607
zk=z, k must be greater than 1.N)nxNetworkXErrorfind_cliqueslen	frozensetr   listappendGraphadd_nodes_from_get_adjacent_cliquesintersectionadd_edgeconnected_componentsunion)
Gkcliquescmembership_dictcliquenode
perc_graph
adj_clique	components
   &&&       c/var/www/html/photoedit/myenv/lib/python3.14/site-packages/networkx/algorithms/community/kclique.pyr   r      s    N 	1uA3&ABCC//!$%,<WA!|y|WG< "$'OD!((0  
 Jg&/HJ6&&z23A>##F7 I  ,,Z8		*+ 9% =s    A EEE(BEAEc                 |    \        4       pV  F+  pW,           F  pW8w  g   K  VP                  V4       K  	  K-  	  V# N)setadd)r   r   adjacent_cliquesnr   s   &&   r   r   r   I   s@    u),,J# $$Z0 -      r    )collectionsr   networkxr   __all___dispatchabler   r    r%   r   <module>r+      s3    # !
" =, =,@r%   