Exemplo n.º 1
0
    def testAddVertices(self):
        numVertices = 10
        vertices = HIVVertices(numVertices)

        v1 = vertices[4]

        vertices.addVertices(5)
        print(vertices.V.shape)
        self.assertEquals(numVertices + 5, vertices.getNumVertices())
        nptst.assert_array_equal(v1, vertices[4])
Exemplo n.º 2
0
    def testContructor(self):
        numVertices = 10
        vertices = HIVVertices(numVertices)

        self.assertEquals(numVertices, vertices.getNumVertices())
        self.assertEquals(8, vertices.getNumFeatures())