Connections between evolution algebras and graphical model of hereditary disease