You have read what a knowledge graph is. Now build the smallest one that works. This tutorial uses plain Python, a list, small functions, no database, libraries, or setup beyond Python. By the end, you’ll have a runnable file that stores facts, answers questions, and navigates between facts. If the words triple , node , or edge are new, read What Is a Knowledge Graph? first. This guide builds what that article describes.