This project uses the following dependencies:
- eframe: For creating the GUI.
- nalgebra: For linear algebra operations.
- rand: For generating random numbers.
Graph partitioning was achieved using the Fielder vector.
- Calculate the normalized Laplacian matrix.
where
- Calculate the eigenvectors of the Laplacian matrix.
The Fiedler vector is the eigenvector corresponding to the second smallest eigenvalue of the Laplacian.
- Partition the graph.
Use the signs of the components of the Fiedler vector to partition the graph: