LearningGraphStructureWithAFinite-State AutomatonLayer