Edge.java

31 lines | 599 B Blame History Raw Download
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufrgs.inf.prosoft.memoizeit.graph;

/**
 *
 * @author romulo
 */
public class Edge<U> {

    private final Node<U> source;
    private final Node<U> target;

    public Edge(Node<U> source, Node<U> target) {
        this.source = source;
        this.target = target;
    }

    public Node<U> getSource() {
        return source;
    }

    public Node<U> getTarget() {
        return target;
    }

}