A python 3 implementation of fault tree, with xml import support. A min-cut of leaves can be generated by Monte Carlo methods.
Python 3.5
To parse raw xml(e.g. example/raw_tree.xml
) into tree xml(e.g. example/example.xml
):
python parse_falt_tree.py # check the result of example/raw_tree.xml
python parse_falt_tree.py input_xml output_xml # using customized input/output
To get the result from example/example.xml
, in terminal:
python min-cut.py
To use customized xml file:
python min-cut.py n_result n_repeat xmlfile
Thanks Dr.Ennan Zhai for comments.