Generalized Graph Ideals of Linear Type