#NEWLINE# @ staticmethod #NEWLINE# def vertexLabelPairs( graph , edgeArray ) : #NEWLINE# #INDENT# '\n        Create an array of pairs of vertex labels for each edge in the graph. Returns\n        a tuple of this array and a vector of corresponding edge weights, for the\n        indices of the full edge index array as given by getAllEdges.\n\n        :param edgeArray: A numpy array with 2 columns, and values corresponding to vertex indices.\n        :type edgeArray: :class:`numpy.ndarray`\n\n        ' #NEWLINE# numFeatures = graph . getVertexList ( ) . getNumFeatures ( ) #NEWLINE# X = numpy . zeros ( ( edgeArray . shape [ 0 ] , ( numFeatures * 2 ) ) ) #NEWLINE# for i in range ( edgeArray . shape [ 0 ] ) : #NEWLINE# #INDENT# X [ i , 0 : numFeatures ] = graph . getVertex ( edgeArray [ ( i , 0 ) ] ) #NEWLINE# X [ i , numFeatures : ( numFeatures * 2 ) ] = graph . getVertex ( edgeArray [ ( i , 1 ) ] ) #NEWLINE# #UNINDENT# return X