Basic Examples
Basic Examples
Retrieve the graph:
In[]:=
ResourceData["Zachary's Karate Club Network"]
Out[]=
Summary properties:
In[]:=
ResourceData["Zachary's Karate Club Network",All]["Summary"]
Out[]=
Name | Zachary's Karate Club Network |
VertexCount | 34 |
EdgeCount | 78 |
Description | Social network of friendships |
ByteCount |
Basic Applications
Basic Applications
Find communities in the friendship network:
In[]:=
g=ResourceData["Zachary's Karate Club Network"];
In[]:=
FindGraphCommunities[g,Method"Hierarchical"]
Out[]=
{{9,10,26,24,25,28,29,30,27,31,32,33,15,16,19,21,23,34},{2,1,3,4,5,6,7,8,11,12,13,14,17,18,20,22}}
Predict the split of the network in case of a conflict:
In[]:=
HighlightGraph[g,Subgraph[g,#]&/@%,GraphHighlightStyle"DehighlightHide"]
Out[]=