lab6/java/comp26120/edge_tgt_t.java
package comp26120;

/**
 * Edge out from a node.
 *
 * Each successor is represented by a weight and a target node.
 */
class edge_tgt_t {
    weight_t w; /// Edge weight
    node_t v; /// Target node

    public edge_tgt_t(weight_t w, node_t v) {
	this.w = w;
	this.v = v;
    }

    boolean _tgt_is_invalid() {
	return v == node_t.INVALID_NODE;
    }
}
