Exemplo n.º 1
0
 Link getLinkToNode(Node toNode) {
   if (!toNodes.containsKey(toNode)) {
     toNodes.put(toNode, getNewLink(myNode, toNode));
   }
   return toNodes.get(toNode);
 }
Exemplo n.º 2
0
 Link getLinkFromNode(Node fromNode) {
   if (!fromNodes.containsKey(fromNode)) {
     fromNodes.put(fromNode, getNewLink(fromNode, myNode));
   }
   return fromNodes.get(fromNode);
 }