Ejemplo n.º 1
0
    def complement(self):
        """
        Returns a graph with identical vertices (same reference) to the current one, but with the
        complement of the set of edges. Edges that do not exist have weight 1.
        """

        Util.abstract()
Ejemplo n.º 2
0
    def getWeightMatrix(self):
        """
        Returns a numpy array of the weight matrix of this graph.

        :returns:  The weight matrix of this graph. 
        """
        Util.abstract()
    def getVertices(self, vertexIndices):
        """
        Returns a list of vertices specified by vertexIndices.

        :param vertexIndices: a list of vertex indices.
        """
        Util.abstract()
    def getVertices(self, vertexIndices):
        """
        Returns a list of vertices specified by vertexIndices.

        :param vertexIndices: a list of vertex indices.
        """
        Util.abstract()
    def setVertices(self, vertices):
        """
        Set the vertices to the given list of vertices.

        :param vertices: a set of vertices of the same shape as this object.
        """
        Util.abstract()
    def setVertices(self, vertices):
        """
        Set the vertices to the given list of vertices.

        :param vertices: a set of vertices of the same shape as this object.
        """
        Util.abstract()
    def getAllEdges(self):
        """
        Return an array of edges with each row representing an edge.

        :returns:  A numpy array of all edges in this graph. 
        """
        Util.abstract()
    def getAllEdges(self):
        """
        Return an array of edges with each row representing an edge.

        :returns:  A numpy array of all edges in this graph. 
        """
        Util.abstract()
Ejemplo n.º 9
0
    def predict(self, X):
        """
        Make a prediction for a set of examples given as the rows of the matrix X.

        :param X: A matrix with examples as rows
        :type X: :class:`ndarray`
        """
        Util.abstract()
    def load(filename):
        """
        Load this object from filename.

        :param filename: The name of the file to load.
        :type filename: :class:`str`
        """
        Util.abstract()
    def clearVertex(self, index):
        """
        Sets a vertex to None

        :param index: the index of the vertex to assign a value.
        :type index: :class:`int`
        """
        Util.abstract()
    def clearVertex(self, index):
        """
        Sets a vertex to None

        :param index: the index of the vertex to assign a value.
        :type index: :class:`int`
        """
        Util.abstract()
    def getVertex(self, index):
        """
        Returns the value of a vertex.

        :param index: the index of the vertex.
        :type index: :class:`int`
        """
        Util.abstract()
Ejemplo n.º 14
0
    def removeEdge(self, vertexIndex1, vertexIndex2, edgeTypeIndex):
        """
        Remove an edge between two vertices.

        @param vertexIndex1: The index of the first vertex.
        @param vertexIndex1: The index of the second vertex.
        """
        Util.abstract()
    def removeEdge(self, vertexIndex1, vertexIndex2, edgeTypeIndex):
        """
        Remove an edge between two vertices.

        @param vertexIndex1: The index of the first vertex.
        @param vertexIndex1: The index of the second vertex.
        """
        Util.abstract()
    def save(self, filename):
        """
        Save this object to filename.nvl.

        :param filename: The name of the file to save.
        :type filename: :class:`str`
        """
        Util.abstract()
    def save(self, filename):
        """
        Save this object to filename.nvl.

        :param filename: The name of the file to save.
        :type filename: :class:`str`
        """
        Util.abstract()
    def load(filename):
        """
        Load this object from filename.

        :param filename: The name of the file to load.
        :type filename: :class:`str`
        """
        Util.abstract()
    def getAllVertexIds(self):
        """
        Return a list of all indices of the vertices
        
        :returns:  A numpy array of all the vertex indices in this graph. 
        """

        Util.abstract()
    def getAllVertexIds(self):
        """
        Return a list of all indices of the vertices
        
        :returns:  A numpy array of all the vertex indices in this graph. 
        """

        Util.abstract()
    def getVertex(self, index):
        """
        Returns the value of a vertex.

        :param index: the index of the vertex.
        :type index: :class:`int`
        """
        Util.abstract()
    def setVertex(self, index, value):
        """
        Set a vertex to the corresponding value.

        :param index: the index of the vertex to assign a value.
        :type index: :class:`int`

        :param value: the value to assign to the vertex.
        """
        Util.abstract()
Ejemplo n.º 23
0
    def addEdge(self, vertexIndex1, vertexIndex2, edgeTypeIndex, edge):
        """
        Add an edge to the graph between two vertices.

        @param vertexIndex1: The index of the first vertex.
        @param vertexIndex1: The index of the second vertex.
        @param edge: The value to assign to the edge.
        """

        Util.abstract()
    def addEdge(self, vertexIndex1, vertexIndex2, edgeTypeIndex, edge):
        """
        Add an edge to the graph between two vertices.

        @param vertexIndex1: The index of the first vertex.
        @param vertexIndex1: The index of the second vertex.
        @param edge: The value to assign to the edge.
        """

        Util.abstract()
    def setVertex(self, index, value):
        """
        Set a vertex to the corresponding value.

        :param index: the index of the vertex to assign a value.
        :type index: :class:`int`

        :param value: the value to assign to the vertex.
        """
        Util.abstract()
    def removeEdge(self, vertexIndex1, vertexIndex2):
        """
        Remove an edge between two vertices.

        :param vertexIndex1: The index of the first vertex.
        :type vertexIndex1: :class:`int`

        :param vertexIndex2: The index of the second vertex.
        :type vertexIndex2: :class:`int`
        """
        Util.abstract()
    def removeEdge(self, vertexIndex1, vertexIndex2):
        """
        Remove an edge between two vertices.

        :param vertexIndex1: The index of the first vertex.
        :type vertexIndex1: :class:`int`

        :param vertexIndex2: The index of the second vertex.
        :type vertexIndex2: :class:`int`
        """
        Util.abstract()
Ejemplo n.º 28
0
    def learnModel(self, X, y):
        """
        Learn a model for a set of examples given as the rows of the matrix X,
        with corresponding labels given in the elements of 1D array y.

        :param X: A matrix with examples as rows
        :type X: :class:`ndarray`

        :param y: A vector of labels
        :type y: :class:`ndarray`
        """
        Util.abstract()
    def addEdge(self, vertexIndex1, vertexIndex2, edgeValue):
        """
        Add a non-zero edge between two vertices.
        
        :param vertexIndex1: The index of the first vertex.
        :type vertexIndex1: :class:`int`

        :param vertexIndex2: The index of the second vertex.
        :type vertexIndex2: :class:`int`

        :param edgeValue: The value to assign to the edge.
        """

        Util.abstract()
    def addEdge(self, vertexIndex1, vertexIndex2, edgeValue):
        """
        Add a non-zero edge between two vertices.
        
        :param vertexIndex1: The index of the first vertex.
        :type vertexIndex1: :class:`int`

        :param vertexIndex2: The index of the second vertex.
        :type vertexIndex2: :class:`int`

        :param edgeValue: The value to assign to the edge.
        """

        Util.abstract()
Ejemplo n.º 31
0
 def getNumEdges(self):
     """ Returns the total number of edges in the graph. """
     Util.abstract()
Ejemplo n.º 32
0
 def complexity(self):
     """
     Return a complexity measure of the current model. 
     """
     Util.abstract()
 def isUndirected(self):
     """ Returns true if the current graph is undirected, otherwise false. """
     Util.abstract()
Ejemplo n.º 34
0
 def getEdge(self, vertexIndex1, vertexIndex2, edgeTypeIndex):
     """ Return an edge between two vertices """
     Util.abstract()
Ejemplo n.º 35
0
 def setVertex(self, vertexIndex, vertex):
     """ Assign a value to a vertex """ 
     Util.abstract()
 def getAllEdges(self):
     """
     Return an array of edges with each row representing an edge and its type index.
     """
     Util.abstract()
Ejemplo n.º 37
0
 def neighbours(self, vertexIndex1):
     """ Return a iterable item of neighbours (indices) """
     Util.abstract()
Ejemplo n.º 38
0
 def inDegreeSequence(self):
     """
     :returns: a vector of the (in)degree for each vertex.
     """
     Util.abstract()
Ejemplo n.º 39
0
 def outDegreeSequence(self):
     """
     Return a vector of the (out)degree for each vertex.
     """
     Util.abstract()
 def getVertex(self, vertexIndex):
     """ Return a vertex of given index """
     Util.abstract()
 def getEdge(self, vertexIndex1, vertexIndex2):
     """ Return an edge between two vertices """
     Util.abstract()
 def neighbours(self, vertexIndex1):
     """ Return a iterable item of neighbours (indices) """
     Util.abstract()
Ejemplo n.º 43
0
 def getNumVertices(self):
     """ Returns the total number of vertices in the graph. """
     Util.abstract()
 def getAllVertexIds(self):
     """ Return all indices of the vertices """
     Util.abstract()
Ejemplo n.º 45
0
 def isUndirected(self):
     """ Returns true if the current graph is undirected, otherwise false. """
     Util.abstract()
 def getNeighboursByEdgeType(self, vertexIndex1, edgeTypeIndex):
     """ Return a iterable item of neighbours (indices) """
     Util.abstract()
Ejemplo n.º 47
0
 def getNeighboursByEdgeType(self, vertexIndex1, edgeTypeIndex):
     """ Return a iterable item of neighbours (indices) """
     Util.abstract()
 def generate(self, graph):
     Util.abstract() 
Ejemplo n.º 49
0
 def getAllVertexIds(self):
     """ Return all indices of the vertices """ 
     Util.abstract()
Ejemplo n.º 50
0
 def process(self, X):
     Util.abstract()
Ejemplo n.º 51
0
 def getAllEdges(self):
     """
     Return an array of edges with each row representing an edge and its type index.
     """
     Util.abstract()
Ejemplo n.º 52
0
 def getAllVertexIds(self):
     """
     :returns: all indices of the vertices of the graph.
     """
     Util.abstract()
Ejemplo n.º 53
0
 def subgraph(self, vertexIndices):
     """
     Takes a list of vertex indices and returns the subgraph containing those
     indices. 
     """
     Util.abstract()
 def setVertex(self, vertexIndex, vertex):
     """ Assign a value to a vertex """
     Util.abstract()
Ejemplo n.º 55
0
 def learn(self, X):
     Util.abstract()
 def getNumEdges(self):
     """ Returns the total number of edges in the graph. """
     Util.abstract()
Ejemplo n.º 57
0
 def __init__(self):
     '''
     Constructor
     '''
     Util.abstract()
 def getNumVertices(self):
     """ Returns the total number of vertices in the graph. """
     Util.abstract()