A network-based approach to biomolecular dynamics