edu.iu.iv.search.p2p.randomWalk
Class RandomWalkAlgorithm

java.lang.Object
  |
  +--edu.iu.iv.search.p2p.randomWalk.RandomWalkAlgorithm
All Implemented Interfaces:
Algorithm

public class RandomWalkAlgorithm
extends java.lang.Object
implements Algorithm

Wrapper for Random Walk Search Algorithm

Author:
Hardik Sheth (hsheth@indiana.edu)

Constructor Summary
RandomWalkAlgorithm()
          Empty Constructor
RandomWalkAlgorithm(edu.uci.ics.jung.graph.Graph graph, int sourceNode, int targetNode, int numWalkers)
          Constructor for RandomWalkAlgorithm.
 
Method Summary
 boolean execute()
          Runs the algorithm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomWalkAlgorithm

public RandomWalkAlgorithm(edu.uci.ics.jung.graph.Graph graph,
                           int sourceNode,
                           int targetNode,
                           int numWalkers)
Constructor for RandomWalkAlgorithm. Sets the source and target nodes for search, the file containing the graph and the number of walkers to perform search.

Parameters:
sourceNode -
targetNode -
numWalkers -

RandomWalkAlgorithm

public RandomWalkAlgorithm()
Empty Constructor

Method Detail

execute

public boolean execute()
Description copied from interface: Algorithm
Runs the algorithm.

Specified by:
execute in interface Algorithm
Returns:
true if the algorithm ran successfully, false otherwise.
See Also:
Algorithm.execute()