def testDensity(self):
        numVertices = 5
        numFeatures = 3
        vList = VertexList(numVertices, numFeatures)

        graph = self.GraphType(vList, False)

        self.assertEquals(graph.density(), 0)

        graph.addEdge(3, 4)
        self.assertEquals(graph.density(), 20/float(1))

        graph = self.GraphType(vList, True)

        self.assertEquals(graph.density(), 0)

        graph.addEdge(3, 4)
        self.assertEquals(graph.density(), float(1)/10)
dataset/ETHPy150Open charanpald/APGL/apgl/graph/test/MatrixGraphTest.py/MatrixGraphTest.testDensity/swapped operands of `/`