Home Reference Source Test Repository
public class | source

AbstractAlgorithm

Direct Subclass:

TraversalAlgorithm

Abstract class for algorithms.

Test:

Constructor Summary

Public Constructor
public

constructor(graph: Graph)

Constructor for the abstract algorithm class.

Member Summary

Public Members
public

graph: *

Method Summary

Public Methods
public

Run the next step of the algorithm.

Public Constructors

public constructor(graph: Graph) source

Constructor for the abstract algorithm class. Should not be called directly.

Params:

NameTypeAttributeDescription
graph Graph

Graph that the algorithm is run on.

Test:

Public Members

public graph: * source

Public Methods

public step(): boolean source

Run the next step of the algorithm.

Return:

boolean

Whether or not the algorithm has a next step.