Couldn't find any link explaining why getting transfer function with Mason's Formula works. Beside this potentially this one:https://ieeexplore.ieee.org/document/1444335 but unfortunately i can't get access, cause i don't have institutional account granting it.