public Integer getWeight(T key) {
        Integer position = nodePosition.get(key);
        if( position == null ) {
            return null;
        } else {
            return allNodes.get(position).weight;
        }
    }
Get the weight of given key
src/com/interview/graph/BinaryMinHeap.java