def testSave(self):
        try:
            numVertices = 10
            numFeatures = 1
            vList = VertexList(numVertices, numFeatures)
            vList.setVertices(numpy.random.rand(numVertices, numFeatures))

            graph = self.GraphType(vList, False)
            graph.addEdge(0, 1, 0.1)
            graph.addEdge(1, 2, 0.2)
            graph.addEdge(1, 3, 0.3)

            dataDir = PathDefaults.getDataDir()
            os.chdir(dataDir)

            tempDir = PathDefaults.getTempDir()
            currentPath = os.getcwd()
            graph.save(tempDir + "testGraph")

            #Make sure save doesn't change the path
            self.assertEquals(os.getcwd(), currentPath)
        except IOError as e:
            logging.warn(e)
            pass
        except __HOLE__ as e:
            logging.warn(e)
            pass
dataset/ETHPy150Open charanpald/APGL/apgl/graph/test/MatrixGraphTest.py/MatrixGraphTest.testSave