Skip to content

Instantly share code, notes, and snippets.

@gsmcwhirter
Created January 29, 2010 03:29
Show Gist options
  • Save gsmcwhirter/289410 to your computer and use it in GitHub Desktop.
Save gsmcwhirter/289410 to your computer and use it in GitHub Desktop.
sage: (graphs.FruchtGraph()).clustering_coeff(nbunch=[0,1,2],with_labels=True,weights=True)
Expected:
({0: 0.33333333333333331, 1: 0.33333333333333331, 2: 0.0}, {0: 0.083333333333333329, 1: 0.083333333333333329, 2: 0.083333333333333329})
Got:
({0: 0.33333333333333331, 1: 0.33333333333333331, 2: 0.0}, {0: 0.33333333333333331, 1: 0.33333333333333331, 2: 0.33333333333333331})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment