Text this: A network theoretic method for the basic reproductive number for infectious diseases