nord vpnnord vpn
Ad

Untitled

mail@pastecode.io avatar
unknown
java
7 months ago
340 B
0
Indexable
Never
package LAB9;

public class GraphEdge
{
    GraphNode fromNode;
    GraphNode toNode;
    int weight; // Add a weight field

    // Update the constructor to include the weight
    public GraphEdge(GraphNode from, GraphNode to, int weight)
    {
        this.fromNode = from;
        this.toNode = to;
        this.weight = weight;
    }
}

nord vpnnord vpn
Ad