On hardware programmable network dynamics with a chemistry-inspired abstraction