BaseElements::WeightedVertices Class Reference

List of all members.

Detailed Description

Represents a collection of weighted vertices of type BaseElements::WeightedVertices.


Public Member Functions

def __init__
 Initialize an empty collection.
def addVertex
 Add vertex to the collection.
def delVertex
 Delete vertex from the collection.
def getVertices
 Get all vertices from the collection.
def findVertex
 Find vertex in the collection.
def findWeight
 Find weight of a given vertex.
def hasVertex
 Checks if vertex is present.

Public Attributes

 weightedVertices
 A dictonary of weighted vertices indexed by vertex numbers and values of type BaseElements::WeightedVertex.


Member Function Documentation

def BaseElements::WeightedVertices::addVertex   self,
  weightedVertex
 

Add vertex to the collection.

Parameters:
weightedVertex Weighted vertex to be added. Should be of type BaseElements::WeightedVertex

def BaseElements::WeightedVertices::delVertex   self,
  vertexNumber
 

Delete vertex from the collection.

Parameters:
vertexNumber Vertex number of the vertex to be deleted

def BaseElements::WeightedVertices::findVertex   self,
  vertexNumber
 

Find vertex in the collection.

Parameters:
vertexNumber Vertex number to be found
Exceptions:
PackageExceptions::VertexError 
Returns:
weightedVertex Found weighted vertex of type BaseElements::WeightedVertex

def BaseElements::WeightedVertices::findWeight   self,
  vertexNumber
 

Find weight of a given vertex.

Parameters:
vertexNumber Vertex number of the vertex whose weight is to be found
Returns:
vertexWeight Weight of vertex

def BaseElements::WeightedVertices::getVertices   self  ) 
 

Get all vertices from the collection.

Returns:
weightedVertices A dict of all weighted vertices indexed by vertex number

def BaseElements::WeightedVertices::hasVertex   self,
  vertexNumber
 

Checks if vertex is present.

Parameters:
vertexNumber Vertex number to be checked
Returns:
0 if vertex is found. Otherwise 1


Generated on Tue Jul 24 19:51:57 2007 for Python Webgraph Generator by  doxygen 1.4.6