yawning_titan.envs.specific.core.node_states.get_linked_node_state#

yawning_titan.envs.specific.core.node_states.get_linked_node_state(current_position, network, machine_states)[source]#

Calculate the state of the nodes linked the red team’s current position.

Parameters:
  • current_position – The current Red Team’s location

  • network – A networkx graph representation of the network

  • machine_states – The current machine states

Returns:

A list of uncompromised linked nodes compromised_nodes: A list of compromised linked nodes

Return type:

uncompromised_nodes