In view of the problems existing in discrete mathematics curriculum teaching,this paper explores the teaching mode of"artificial intelligence+education",and proposes an adaptive learning guidance concept based on knowledge graph,which is a new ecological teaching mode exploring and reforming method.Firstly,high-quality resources are selected,integrated and constructed to build a two-tier knowledge graph.The curriculum group digital twin model is then constructed.Finally,an adaptive learning guidance recommendation algorithm based on integrated education theory is proposed.The individual twin digital model is used to analyze the learning path generated by the knowledge graph RippleNet algorithm and recommend the optimal learning path which is in line with the individual characteristics of learners,so as to effectively use resources and effectively predict and warn the learners by teachers.