INNER CODE UNIT · Dart
Algorithm
nabil6391/graphview · lib/Algorithm.dart:8
abstract class Algorithm {
/// The edge renderer used to draw connections between nodes.
EdgeRenderer? renderer;
/// Executes the algorithm, positioning all nodes in the [graph].
///
/// [shiftX] and [shiftY] offset the coordinate origin.
/// Returns the bounding [Size] of the laid-out graph.
Size run(Graph? graph, double shiftX, double shiftY);
/// Initializes internal data structures for the given [graph].
void init(Graph? graph);
/// Sets the available viewport dimensions for layout computation.
void setDimensions(double width, double height);
}