FlutterGraphWidget constructor

FlutterGraphWidget({
  1. Key? key,
  2. required dynamic data,
  3. required DataConvertor convertor,
  4. required GraphAlgorithm algorithm,
  5. Options? options,
})

Implementation

FlutterGraphWidget({
  super.key,
  required this.data,
  required this.convertor,
  required this.algorithm,
  Options? options,
}) : options = options ?? Options() {
  graph.options = options;
  this.options.graph = graph;
  graph.convertor = convertor;
  graph.algorithm = algorithm;
  algorithm.setGlobalData(rootAlg: algorithm, graph: graph);
}