Modeling Markets as Stream Networks