Advertisement
Guest User

Untitled

a guest
May 26th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. LocalClusteringCoefficient[
  2. Graph[{1 <-> 2, 1 <-> 3, 2 <-> 3, 2 <-> 4, 3 <-> 4}]]
  3.  
  4. g2 = Graph[{1, 2, 3, 4}, {1 -> 2, 1 -> 3, 2 -> 4, 3 -> 1, 3 -> 2,
  5. 3 -> 4}, VertexLabels -> "Name"];
  6. Transpose[{VertexList@g2, LocalClusteringCoefficient[g2]}]
  7.  
  8. g2 = Graph[{1, 2, 3, 4}, {1 -> 2, 1 -> 3, 2 -> 4, 3 -> 1, 2 -> 3,
  9. 3 -> 4}, VertexLabels -> "Name"];
  10. Transpose[{VertexList@g2, LocalClusteringCoefficient[g2]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement