Constructing Classic Graphs in Graph Theory Using Python and Generative AI: A Case Study in Computational Visualization and Prompt Engineering

Article ID

CSTGV6C4XV

Constructing Classic Graphs in Graph Theory Using Python and Generative AI: A Case Study in Computational Visualization and Prompt Engineering

Dr. Shanzhen Gao
Dr. Shanzhen Gao Virginia State University
Dr. Weizheng Gao
Dr. Weizheng Gao
Dr. Julian D. Allagan
Dr. Julian D. Allagan
Dr. Jianning Su
Dr. Jianning Su
Dr. Ephrem Eyob
Dr. Ephrem Eyob
Dr. Hank B. Strevel
Dr. Hank B. Strevel
DOI

Abstract

This study explores the construction of several classic graphs in graph theory through Python programming, offering a hands-on computational approach to understanding their mathematical properties. The selected graphs-including the Wagner, Desargues, Herschel, Möbius-Kantor, Franklin, truncated icosahedral, and triangular grid graphs-are chosen for their historical significance and structural complexity. Using Python’s turtle graphics module, each graph is visualized through trigonometric and geometric logic, illustrating core concepts such as regularity, symmetry, Hamiltonicity, and planarity. In addition to manual code development, the study integrates generative AI, specifically ChatGPT, to reproduce graph constructions via prompt engineering. This dual approach showcases the educational potential of AI-assisted programming and reinforces algorithmic thinking. The work aims to bridge the gap between theoretical graph concepts and their algorithmic applications. It provides a replicable methodology that enhances student engagement, supports active learning, and promotes interdisciplinary exploration across mathematics, computer science, and education.

Constructing Classic Graphs in Graph Theory Using Python and Generative AI: A Case Study in Computational Visualization and Prompt Engineering

This study explores the construction of several classic graphs in graph theory through Python programming, offering a hands-on computational approach to understanding their mathematical properties. The selected graphs-including the Wagner, Desargues, Herschel, Möbius-Kantor, Franklin, truncated icosahedral, and triangular grid graphs-are chosen for their historical significance and structural complexity. Using Python’s turtle graphics module, each graph is visualized through trigonometric and geometric logic, illustrating core concepts such as regularity, symmetry, Hamiltonicity, and planarity. In addition to manual code development, the study integrates generative AI, specifically ChatGPT, to reproduce graph constructions via prompt engineering. This dual approach showcases the educational potential of AI-assisted programming and reinforces algorithmic thinking. The work aims to bridge the gap between theoretical graph concepts and their algorithmic applications. It provides a replicable methodology that enhances student engagement, supports active learning, and promotes interdisciplinary exploration across mathematics, computer science, and education.

Dr. Shanzhen Gao
Dr. Shanzhen Gao Virginia State University
Dr. Weizheng Gao
Dr. Weizheng Gao
Dr. Julian D. Allagan
Dr. Julian D. Allagan
Dr. Jianning Su
Dr. Jianning Su
Dr. Ephrem Eyob
Dr. Ephrem Eyob
Dr. Hank B. Strevel
Dr. Hank B. Strevel

No Figures found in article.

Dr. Shanzhen Gao. 2026. “. Global Journal of Computer Science and Technology – F: Graphics & Vision GJCST-F Volume 25 (GJCST Volume 25 Issue F1): .

Download Citation

Journal Specifications

Crossref Journal DOI 10.17406/gjcst

Print ISSN 0975-4350

e-ISSN 0975-4172

Classification
Not Found
Keywords
Article Matrices
Total Views: 134
Total Downloads: 38
2026 Trends
Research Identity (RIN)
Related Research
Our website is actively being updated, and changes may occur frequently. Please clear your browser cache if needed. For feedback or error reporting, please email [email protected]

Request Access

Please fill out the form below to request access to this research paper. Your request will be reviewed by the editorial or author team.
X

Quote and Order Details

Contact Person

Invoice Address

Notes or Comments

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

High-quality academic research articles on global topics and journals.

Constructing Classic Graphs in Graph Theory Using Python and Generative AI: A Case Study in Computational Visualization and Prompt Engineering

Dr. Shanzhen Gao
Dr. Shanzhen Gao Virginia State University
Dr. Weizheng Gao
Dr. Weizheng Gao
Dr. Julian D. Allagan
Dr. Julian D. Allagan
Dr. Jianning Su
Dr. Jianning Su
Dr. Ephrem Eyob
Dr. Ephrem Eyob
Dr. Hank B. Strevel
Dr. Hank B. Strevel

Research Journals