C# Class TemporalNetworks.RandomWalk

A class that can be used to study random walk dynamics in temporal networks
Show file Open project: IngoScholtes/TemporalNetworks Class Usage Examples

Public Methods

Method Description
GetLastVisit ( string node ) : int
GetMaxVisitationProb ( ) : double
GetMinVisitationProb ( ) : double
GetVisitationProb ( string node ) : double
RandomWalk ( TemporalNetwork network, RandomWalkMode walkmode ) : System

Creates an instance of a random walk process

Step ( ) : void

Performs one transition of the random walk process.

Private Methods

Method Description
ComputeStationaryDist ( ) : double>.Dictionary

Computes the expected stationary distribution of a random walk in the weighted aggregate network NOTE: At present, this implementation only works correctly if the network is undirected!

InitializeCumulatives ( ) : void

Initializes all vectors that will be used for sampling transition probabilities in first and second-order network

StringToTuple ( string edge ) : string>.Tuple

Convert an edge in string format to tuple format

TupleToString ( string>.Tuple edge ) : string

Convert an edge in tuple format to string format

Method Details

GetLastVisit() public method

public GetLastVisit ( string node ) : int
node string
return int

GetMaxVisitationProb() public method

public GetMaxVisitationProb ( ) : double
return double

GetMinVisitationProb() public method

public GetMinVisitationProb ( ) : double
return double

GetVisitationProb() public method

public GetVisitationProb ( string node ) : double
node string
return double

RandomWalk() public method

Creates an instance of a random walk process
public RandomWalk ( TemporalNetwork network, RandomWalkMode walkmode ) : System
network TemporalNetwork
walkmode RandomWalkMode
return System

Step() public method

Performs one transition of the random walk process.
public Step ( ) : void
return void