pygel::RandomGraphs::ChooseEdges::ChooseEdges Class Reference
[Random Graphs]

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
 noSelfLoops
 id
 Thread ID.

Static Public Attributes

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

Member Function Documentation

def pygel::RandomGraphs::ChooseEdges::ChooseEdges::__init__ (   self,
  noOfEdges,
  noSelfLoops,
  startVertX,
  endVertX,
  startVertY,
  endVertY,
  probA,
  probB,
  probC,
  probD 
)

Constructs a selector thread.

See also:
RandomGraphs::DirectedPowerLawRandomGraph

def pygel::RandomGraphs::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

Common serial edge list.

Updated by each thread in a semaphoric operation

See also:
RandomGraphs::DirectedPowerLawRandomGraph

See also:
RandomGraphs::DirectedPowerLawRandomGraph

See also:
RandomGraphs::DirectedPowerLawRandomGraph

See also:
RandomGraphs::DirectedPowerLawRandomGraph

See also:
RandomGraphs::DirectedPowerLawRandomGraph

See also:
RandomGraphs::DirectedPowerLawRandomGraph

See also:
RandomGraphs::DirectedPowerLawRandomGraph

See also:
RandomGraphs::DirectedPowerLawRandomGraph

See also:
RandomGraphs::DirectedPowerLawRandomGraph

See also:
RandomGraphs::DirectedPowerLawRandomGraph


Generated on Sat Dec 13 02:15:46 2008 for Python Webgraph Generator by  doxygen 1.5.6