def test_simple_udir(self):

		G = Graph()
		G.add_edge('x','y')
		G.add_edge('x','z')
		G.add_edge('y','z')

		x = clustering.gcc(G)
		self.assertEqual(x,1.0)

		G.add_edge('z','w')
		x = clustering.gcc(G)
		self.assertAlmostEqual(x,3.0/5.0)
dataset/ETHPy150Open networkdynamics/zenlib/src/zen/tests/clustering.py/GlobalClusteringCoefficientTestCase.test_simple_udir/original