grape.fault_diagnosis.FaultDiagnosis.rm_nodes

FaultDiagnosis.rm_nodes(node, graph, visited=None, broken_nodes=None)[source]

Remove nodes from the graph in a depth first search way to propagate the perturbation.

Parameters
  • node (str) – the id of the node to remove.

  • graph (nx.DiGraph) – graph on which to apply the node deletion

  • visited (set, optional) – nodes already visited, default to None.

  • broken_nodes (list, optional) – nodes that got broken along the perturbation, default to None.