Può essere misurato in due modi diversi: globale e locale. Quello globale descrive in generale l'intensità del fenomeno di clustering nella rete, mentre quella locale riguarda il livello di radicamento dei singoli nodi.
== LocalCoefficiente di clustering coefficientlocale ==
[[Image:Clustering coefficient example.svg|thumb|upright=0.7|Esempio di coefficiente di clustering localein un grafo non orientato:<br />1. Nel primo caso, i collegamenti fra i vicini del nodo blu sono tre su tre, quindi il coefficiente risulta essere 1.<br />2. Nel secondo caso, i collegamenti sono uno su tre, quindi il coefficiente è 1/3.<br />3. Nel terzo caso i collegamenti sono inesistenti, quindi il coefficiente è nullo.]]
Il '''coefficiente di clustering locale''' di un [[Vertice (teoria dei grafi)|nodo]] in un grafo indica quanto i suoi vicini siano distanti dall'essere una [[Cricca (teoria dei grafi)|cricca]]. [[Duncan J. Watts]] and [[Steven Strogatz]] introdussero questa misura nel 1998 per determinare se un grafo sia o meno una rete rientrante nella [[teoria del mondo piccolo]].
Il '''coefficiente di clustering locale'''
The '''local clustering coefficient''' of a [[vertex (graph theory)|vertex]] (node) in a [[Graph (mathematics)|graph]] quantifies how close its [[Neighbourhood (graph theory)|neighbors]] are to being a [[Clique (graph theory)|clique]] (complete graph). [[Duncan J. Watts]] and [[Steven Strogatz]] introduced the measure in 1998 to determine whether a graph is a [[small-world network]].
AUn grafo graph <math>G=(V,E)</math> formallyconsiste consistsformalmente ofdi aun set of verticesinsieme <math>V</math> anddi avertici sete ofun edgesinsieme <math>E</math> betweendi themcollegamenti. AnUn edgecollegamento <math>e_{ij}</math> connectsconnette vertexun vertice <math>v_i</math> withcon un vertexvertice <math>v_j</math>.
The [[Neighbourhood (graph theory)|neighbourhood]] L'insieme <math> N_i </math> fordei avicini vertexdi un vertice <math>v_i</math> isè definito definedcome asl'insieme itsdei immediatelynodi connecteddirettamente neighboursconnessi asad followsesso:
: <math>N_i = \{v_j : e_{ij} \in Eleft \andlangle e_{ji}, e_{ij} \right \rangle \in E^2\}.</math>
We defineDefiniamo <math>k_i</math> ascome thela number[[cardinalità]] of vertices,di <math>|N_i|</math>, inovvero theil neighbourhood,numero di vicini di un vertice <math>N_iv_i</math>, of a vertex.
<dfn>Il coefficiente di clustering locale <math>C_i</math> di un vertice <math>v_i</math> è dato dal numero di collegamenti fra i membri di <math>N_i</math> fratto il numero di collegamenti potenziali fra loro.</dfn>
The local clustering coefficient <math>C_i</math> for a vertex <math>v_i</math> is then given by the proportion of links between the vertices within its neighbourhood divided by the number of links that could possibly exist between them. For a directed graph, <math>e_{ij}</math> is distinct from <math>e_{ji}</math>, and therefore for each neighbourhood <math>N_i</math> there are <math>k_i(k_i-1)</math> links that could exist among the vertices within the neighbourhood (<math>k_i</math> is the number of neighbors of a vertex). Thus, the '''local clustering coefficient for directed graphs''' is given as <ref name=WattsStrogatz1998 />
In un [[grafo orientato]], <math>e_{ij}</math> è distinto da <math>e_{ji}</math>, dunque per ogni <math>N_i</math> ci sono <math>k_i(k_i-1)</math> collegamenti possibili fra i suoi membri. Di conseguenza, il coefficiente di clustering locale per grafi orientati è dato da:<ref name=WattsStrogatz1998/>
: <math>C_i = \frac{|\{e_{jk}: v_j,v_k \in N_i, e_{jk} \in E\}|}{k_i(k_i-1)}.</math>
AnLa undirectedproprietà graphcaratteristica hasdi theun propertygrafo thatnon orientato è invece che <math>e_{ij}</math> ande <math>e_{ji}</math> aresono consideredconsiderati identical. Thereforeidentici, ifdunque aper vertexogni <math>v_iN_i</math> hasci <math>k_i</math> neighbours,sono <math>\frac{k_i(k_i-1)}{2}</math> edgescollegamenti couldpossibili existfra amongi thesuoi verticesmembri. withinDi theconseguenza, neighbourhood. Thus,il thecoefficiente '''localdi clustering coefficientlocale forper undirectedgrafi graphs'''non canorientati beè defineddato asda:
: <math>C_i = \frac{2 \cdot|\{e_{jk}: v_j,v_k \in N_i, e_{jk} \in E\}|}{k_i(k_i-1)}.</math> ▼
▲: <math>C_i = \frac{2|\{e_{jk}: v_j,v_k \in N_i, e_{jk} \in E\}|}{k_i(k_i-1)}.</math>
Let <math>\lambda_G(v)</math> be the number of triangles on <math>v \in V(G)</math> for undirected graph <math>G</math>. That is, <math>\lambda_G(v)</math> is the number of subgraphs of <math>G</math> with 3 edges and 3 vertices, one of which is <math>v</math>. Let <math>\tau_G(v)</math> be the number of triples on <math>v \in G</math>. That is, <math>\tau_G(v)</math> is the number of subgraphs (not necessarily induced) with 2 edges and 3 vertices, one of which is <math>v</math> and such that <math>v</math> is incident to both edges. Then we can also define the clustering coefficient as
: <math>C_i = \frac{\lambda_G(v)}{\tau_G(v)}.</math>
It is simple to show that the two preceding definitions are the same, since
: <math>\tau_G(v) = C({k_i},2) = \frac{1}{2}k_i(k_i-1).</math>
These measures are 1 if every neighbour connected to <math>v_i</math> is also connected to every other vertex within the neighbourhood, and 0 if no vertex that is connected to <math>v_i</math> connects to any other vertex that is connected to <math>v_i</math>.
== Coefficiente di clustering globale ==
Il concetto di '''coefficiente di clustering globale''' è basato su triple di nodi. Una tripla consiste di tre nodi connessi da due (tripla aperta) o tre (tripla chiusa) collegamenti. Ogni tripla è incentrata su un nodo. Un triangolo consiste di tre triple chiuse incentrate sui tre stessi nodi che le compongono.
Il coefficiente di clustering globale è, dunque, il numero di triple chiuse (o 3 volte il numero di triangoli) fratto il numero totale di triple (somma di quelle aperte e chiuse). Il primo tentativo di misurarlo fu effettuato da [[Robert Duncan Luce|Robert D. Luce]] e Albert D. Perry (1949).<ref>{{Cite journal|author = [[Robert Duncan Luce|R. D. Luce]], A. D. Perry|title = A method of matrix analysis of group structure|year = 1949|journal = Psychometrika|volume = 14|pages = 95–116|doi = 10.1007/BF02289146|issue = 1|pmid=18152948}}</ref> Questo metodo può essere applicato sia alle reti orientate che non orientate (often called transitivity).<ref>Stanley Wasserman, Kathrine Faust, 1994. ''Social Network Analysis: Methods and Applications.'', p. 243. Cambridge: Cambridge University Press.</ref>
*<math>n_\Delta(G)</math> è il numero di triangoli del grafo;
*<math>n_\land(G)</math> è il numero complessivo di triple del grafo;
*<math>w_i</math> è il peso del vertice i-esimo<math>v_i</math> (numero di triple in cui il nodo è centrale);
Notare che <math>\sum_{i=1}^{n} w_i \equiv n_\land(G)</math>.
<references/>
<nowiki>[[Categoria:Teoria dei grafi]]
[[Categoria:Reti sociali]]
|