ChooseEdges::ChooseEdges Class Reference

List of all members.

Detailed Description

Thread for selecting a set of edges.


Public Member Functions

def __init__
 Constructs a selector thread.
def selectVertex
 Selects start and end vertices recursively.
def run
 Start the thread.

Public Attributes

 startVertX
 endVertX
 startVertY
 endVertY
 noOfEdges
 probA
 probB
 probC
 probD
 debug
 id
 Thread ID.

Static Public Attributes

list serialEdgeList = []
 Common serial edge list.
tuple serialEdgeListLock = threading.Lock()
 Lock that a thread acquires for performing a semaphoric operation.
int id = 0
 Thread ID.


Member Function Documentation

def ChooseEdges::ChooseEdges::__init__   self,
  noOfEdges,
  startVertX,
  endVertX,
  startVertY,
  endVertY,
  probA,
  probB,
  probC,
  probD
 

Constructs a selector thread.

See also:
RandomGraphs::PowerLawRandomGraph

def ChooseEdges::ChooseEdges::selectVertex   self,
  sVertX,
  eVertX,
  sVertY,
  eVertY,
  cumulativeA,
  cumulativeB,
  cumulativeC
 

Selects start and end vertices recursively.

Parameters:
sVertX Starting column of the adjacency matrix
eVertX Ending column of the adjacency matrix
sVertY Starting row of the adjacency matrix
eVertY Ending column of the adjacency matrix
cumulativeA Cumulative distribution
cumulativeB Cumulative distribution
cumulativeC Cumulative distribution
Returns:
Selected vertices


Member Data Documentation

ChooseEdges::ChooseEdges::endVertX
 

See also:
RandomGraphs::PowerLawRandomGraph

ChooseEdges::ChooseEdges::endVertY
 

See also:
RandomGraphs::PowerLawRandomGraph

ChooseEdges::ChooseEdges::noOfEdges
 

See also:
RandomGraphs::PowerLawRandomGraph

ChooseEdges::ChooseEdges::probA
 

See also:
RandomGraphs::PowerLawRandomGraph

ChooseEdges::ChooseEdges::probB
 

See also:
RandomGraphs::PowerLawRandomGraph

ChooseEdges::ChooseEdges::probC
 

See also:
RandomGraphs::PowerLawRandomGraph

ChooseEdges::ChooseEdges::probD
 

See also:
RandomGraphs::PowerLawRandomGraph

list ChooseEdges::ChooseEdges::serialEdgeList = [] [static]
 

Common serial edge list.

Updated by each thread in a semaphoric operation

ChooseEdges::ChooseEdges::startVertX
 

See also:
RandomGraphs::PowerLawRandomGraph

ChooseEdges::ChooseEdges::startVertY
 

See also:
RandomGraphs::PowerLawRandomGraph


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