public final boolean equals(Object object){
  if (object == null) {
    return false;
  }
  if (!(object instanceof KnowledgeEdge)) {
    return false;
  }
  KnowledgeEdge pair=(KnowledgeEdge)object;
  return from.equals(pair.from) && to.equals(pair.to);
}

public final boolean equals ( Object object ) { if ( object == null ) { return false ; } if ( ! ( object instanceof KnowledgeEdge ) ) { return false ; } KnowledgeEdge pair = ( KnowledgeEdge ) object ; return from . equals ( pair . from ) && to . equals ( pair . to ) ; }
reteurns true if ( from1 , to1 ) = = ( from2 , to2 ) .
