FlutterGraphWidget constructor

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

Implementation

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