/// Suggest a value for a specific field of the given node
Suggest a value for a specific field of the given node
Suggest a value for a specific field of the given node
pub fn suggest(&mut self, id: NodeId, field: Field, value: f64, strength: f64) {
        let node = self.nodes.get(&id).unwrap();
        self.solver
            .add_constraint(node.get_var(field) | EQ(strength) | value)
            .unwrap();
    }
pub fn suggest ( & mut self , id : NodeId , field : Field , value : f64 , strength : f64 ) { let node = self . nodes . get ( & id ) . unwrap ( ) ; self . solver . add_constraint ( node . get_var ( field ) | EQ ( strength ) | value ) . unwrap ( ) ; }
Suggest a value for a specific field of the given node
Suggest a value for a specific field of the given node
&mut self
id
NodeId
field
Field
value
f64
strength
f64