function changeCertaintyProperty(selectedNode) {
	let childrenArray = selectedNode.get_all_nodes()
	if (toggledCertainty !== 'true') {
		for (let x = 1; x < childrenArray.length; x++) {
			let nodeID = '#tnt_tree_node_treeBox_' + childrenArray[x].id()
			let certainty = d3.select(nodeID)
				.select('text')
				.html()
			let opacity = certainty / oneHundred // converts certainty into decimal since opacity must be from 0 to 1
			childrenArray[x].property('certaintyOnOff', opacity)
		}
		toggledCertainty = 'true'
	}
	else if (toggledCertainty === 'true') {
		for (let x = 1; x < childrenArray.length; x++)
			childrenArray[x].property('certaintyOnOff', 1)
		toggledCertainty = 'false'
	}
}
/**
 * Modifies the 'certaintyOnOff' property of all nodes in a subtree as follows:
 *    - Calculates the opacity based on support values and sets that as the property if toggling on.
 *    - Sets '1' as the property if toggling off.
 *
 * @param {any} selectedNode
 */
Modifies the 'certaintyOnOff' property of all nodes in a subtree as follows:
- Calculates the opacity based on support values and sets that as the property if toggling on.
- Sets '1' as the property if toggling off.

@param {any} selectedNode
Modifies the ' certaintyOnOff ' property of all nodes in a subtree as follows : - Calculates the opacity based on support values and sets that as the property if toggling on . - Sets ' 1 ' as the property if toggling off . @param { any } selectedNode
function changeCertaintyProperty(selectedNode) {
	let childrenArray = selectedNode.get_all_nodes()
	if (toggledCertainty !== 'true') {
		for (let x = 1; x < childrenArray.length; x++) {
			let nodeID = '#tnt_tree_node_treeBox_' + childrenArray[x].id()
			let certainty = d3.select(nodeID)
				.select('text')
				.html()
			let opacity = certainty / oneHundred 
			childrenArray[x].property('certaintyOnOff', opacity)
		}
		toggledCertainty = 'true'
	}
	else if (toggledCertainty === 'true') {
		for (let x = 1; x < childrenArray.length; x++)
			childrenArray[x].property('certaintyOnOff', 1)
		toggledCertainty = 'false'
	}
}
function changeCertaintyProperty ( selectedNode ) { let childrenArray = selectedNode . get_all_nodes ( ) if ( toggledCertainty !== 'true' ) { for ( let x = 1 ; x < childrenArray . length ; x ++ ) { let nodeID = '#tnt_tree_node_treeBox_' + childrenArray [ x ] . id ( ) let certainty = d3 . select ( nodeID ) . select ( 'text' ) . html ( ) let opacity = certainty / oneHundred childrenArray [ x ] . property ( 'certaintyOnOff' , opacity ) } toggledCertainty = 'true' } else if ( toggledCertainty === 'true' ) { for ( let x = 1 ; x < childrenArray . length ; x ++ ) childrenArray [ x ] . property ( 'certaintyOnOff' , 1 ) toggledCertainty = 'false' } }
Modifies the 'certaintyOnOff' property of all nodes in a subtree as follows:
    - Calculates the opacity based on support values and sets that as the property if toggling on.
Modifies the ' certaintyOnOff ' property of all nodes in a subtree as follows : - Calculates the opacity based on support values and sets that as the property if toggling on .
// converts certainty into decimal since opacity must be from 0 to 1