/*
* 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;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author romulo
*/
public class Graph<U> {
private final Map<U, Node<U>> contentHasNode;
public Graph() {
this.contentHasNode = new HashMap<>();
}
public Graph(Map<U, Node<U>> contentHasNode) {
this.contentHasNode = contentHasNode;
}
public Node<U> getNode(U content) {
return this.contentHasNode.get(content);
}
}