Adding in graph theory work
This commit is contained in:
11
src/Edge.java
Normal file
11
src/Edge.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user