BNMPy.booleanNetwork¶
- class BNMPy.booleanNetwork.BooleanNetwork(numberOfNodes, linkages, functions, initialNodeValues=None, outputFilePath='', nodeDict=None, equations=None)[source]¶
Boolean network object…
Methods
buildK
()This rebuilds the K array.
knockout
(key, value)Sets a specific node to be permanently fixed to a given value.
setInitialValue
(key, value)Sets a particular node to a given initial value, where the key is indexed in nodeDict.
setInitialValues
(initialNodeValues)Sets the initial values of the boolean network.
Undoes all knockouts.
updateUntilAttractorIsReached
(giveUpIterations)update_noise
(p[, iterations])Asynchronous update: Update one random non-constant node for one step.
getBias
getMaxConnectivity
getMeanConnectivity
getRealization
getTrajectory
initializeOutput
stateToWrite
toGraph
update
writeNetworkHistory
- setInitialValue(key, value)[source]¶
Sets a particular node to a given initial value, where the key is indexed in nodeDict.
- update_one()[source]¶
Asynchronous update: Update one random non-constant node for one step.
This method randomly selects one non-constant node and updates only that node based on its Boolean function, while keeping all other nodes unchanged. This simulates asynchronous dynamics where nodes update at different times.