Link-aware link prediction over temporal graph by pattern recognition