- This project is a simple Feynman diagram generator written in C++ using the Boost Graph Library.
- At the moment, only undirected diagrams corresponding to the one-electron self-energy with electron-phonon interactions can be output.
Ensure you have the following installed on your system:
- CMake (version 3.13 or higher)
- A C++ compiler (e.g., g++, clang)
- Boost library
- Graphviz (for generating graphical output)
sudo apt update
sudo apt install cmake g++ libboost-all-dev graphviz
sudo pacman -S cmake boost graphviz
brew install cmake boost graphviz
- Clone the repository:
git clone git@github.com:cohsh/feynman-diagram-generator.git
cd feynman-diagram-generator
- Create a build directory and run CMake:
cmake -S . -B build
- Build the project:
make
- Run the executable (
$n=1,2$ is the order of diagrams):
./generate_graph.sh n
This will generate dot/graph_*.dot
and png/graph_*.png
files.