Adding in graph theory work

This commit is contained in:
Frank
2025-09-01 18:38:29 -06:00
parent 1955c8b659
commit d40e0a6e35
5 changed files with 133 additions and 2 deletions

11
src/Edge.java Normal file
View File

@@ -0,0 +1,11 @@
public class Edge {
Node source;
Node destination;
int weight;
public Edge(Node source, Node destination, int weight) {
this.source = source;
this.destination = destination;
this.weight = weight;
}
}