S-gap shifts are a well-studied class of shift spaces, which has led to several proposed generalizations. This paper introduces a new class of shift spaces called S-graph shifts whose essential structure is encoded in a novel way, as a finite directed graph with a set of natural numbers assigned to each vertex. S-graph shifts contain S-gap shifts and their generalizations, as well as all vertex shifts and SFTs, as special cases, thereby providing a method to study these shift spaces in a uniform way. The main result in this paper is a formula for the entropy of any S-graph shift, which, by specialization, resolves a problem proposed by Matson and Sattler. A second result establishes an explicit formula for the zeta functions of S-graph shifts. Additionally, we show that every entropy value is obtained by uncountably many S-graph shifts.