diff --git a/src/app/components/analysis-window/analysis-window.component.ts b/src/app/components/analysis-window/analysis-window.component.ts
index 170d0dee39bf8fc740abc361921781f934f706c1..4e8601fda70410fd180e7d11c061e9d2a66c5015 100644
--- a/src/app/components/analysis-window/analysis-window.component.ts
+++ b/src/app/components/analysis-window/analysis-window.component.ts
@@ -299,7 +299,8 @@ export class AnalysisWindowComponent implements OnInit, OnChanges {
         color: NetworkSettings.getColor('edgeHostVirus'),
         highlight: NetworkSettings.getColor('edgeHostVirusHighlight')
       };
-      const {from, to} = getNodeIdsFromPPI(edge);
+      const from = edge.from.startsWith('DB') ? `d_${edge.from}` : `p_${edge.from}`;
+      const to = edge.to.startsWith('DB') ? `d_${edge.to}` : `p_${edge.to}`;
       return {
         from, to,
         color: edgeColor,