Basic Examples
Basic Examples
Retrieve the graph:
In[]:=
ResourceData["Swim Friendship Network"]
Out[]=
Summary properties:
In[]:=
ResourceData["Swim Friendship Network",All]["Summary"]
Out[]=
Name | Swim Friendship Network |
VertexCount | 9 |
EdgeCount | 13 |
Description | Social network of friendship in a swimming team |
ByteCount |
Basic Applications
Basic Applications
Find the communities in a friendship network of the swim team:
In[]:=
g=ResourceData["Swim Friendship Network"];
In[]:=
communities=FindGraphCommunities[g,Method"Hierarchical"]
Out[]=
{{Anna,Rose,Nora,Ben,Larry,Carol},{Rudy,Linda},{James}}
Predict the split of the network in the case of a conflict:
In[]:=
HighlightGraph[g,Subgraph[g,#]&/@communities,GraphHighlightStyle"DehighlightHide"]
Out[]=
Find the most influential member in the friendship network by centrality:
In[]:=
Commonest[First[Part[VertexList[g],Ordering[#[g],All,Greater]]]&/@{BetweennessCentrality,ClosenessCentrality,DegreeCentrality,EccentricityCentrality,EigenvectorCentrality,RadialityCentrality,StatusCentrality}]
Out[]=
{Anna}