def subgraph(self, vertexIndices):
        Parameter.checkList(vertexIndices, Parameter.checkIndex, (0, self.getNumVertices()))
        vertexIndices = numpy.unique(numpy.array(vertexIndices))
        vList = self.vList.subList(vertexIndices.tolist())

        subGraph = PySparseGraph(vList, self.undirected)
        
        if len(vertexIndices) != 0:
            subGraph.W = self.W[vertexIndices, vertexIndices]

        return subGraph
Memory, core and disk requirements are specified identically to as in             :func:`toil.job.Job.__init__`.
dataset/ETHPy150Open charanpald/APGL/apgl/graph/PySparseGraph.py/PySparseGraph.subgraph--crossover with--dataset/ETHPy150Open BD2KGenomics/toil/src/toil/job.py/Job.Service.__init__