ConceptEdge constructor
const
ConceptEdge({
- required String sourceId,
- required String targetId,
- required RelationshipType relationshipType,
- required double strength,
- String label = '',
Implementation
const ConceptEdge({
required this.sourceId,
required this.targetId,
required this.relationshipType,
required this.strength,
this.label = '',
}) : assert(strength >= 0.0 && strength <= 1.0,
'Edge strength must be in [0, 1]');