Mathmatical network model framework