GraphConfiguration class

Configuration options for the Graph widget.

Constructors

GraphConfiguration({double repulsionStrength = 1.1, double attractionStrength = 1.0, int iterations = 90, double coolingRate = 0.95, double minNodeRadius = 12.0, double maxNodeRadius = 40.0, Color defaultNodeColor = const Color(0xFF0EA5E9), Color mainNodeColor = const Color(0xFFFB7185), Color highlightColor = const Color(0xFFF97373), Color edgeColor = const Color(0xFF38BDF8), TextStyle labelStyle = const TextStyle(fontSize: 11, color: Colors.black87, fontWeight: FontWeight.w600), double minScale = 0.5, double maxScale = 2.5, EdgeInsets boundaryMargin = const EdgeInsets.all(40), int layoutSeed = 42})
const

Properties

attractionStrength double
The strength of the attraction force along edges.
final
boundaryMargin EdgeInsets
Margin around the graph boundaries.
final
coolingRate double
The cooling factor or temperature reduction per iteration.
final
defaultNodeColor Color
Default color for standard nodes.
final
edgeColor Color
Default color for graph edges.
final
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color
Color used for specific relationship types (e.g., citation).
final
iterations int
The number of simulation iterations to compute.
final
labelStyle TextStyle
Text style used for node labels.
final
layoutSeed int
The random seed used for the initial layout generation. Set this dynamically per search to ensure unique graph positions.
final
mainNodeColor Color
Color for the main/highlighted node.
final
maxNodeRadius double
Maximum radius for node circles.
final
maxScale double
Maximum zoom scale for InteractiveViewer.
final
minNodeRadius double
Minimum radius for node circles.
final
minScale double
Minimum zoom scale for InteractiveViewer.
final
repulsionStrength double
The strength of the repulsion force between all nodes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited