diff --git a/java/src/main/java/com/powsybl/python/network/NetworkAreaDiagramUtil.java b/java/src/main/java/com/powsybl/python/network/NetworkAreaDiagramUtil.java index 2fcbc93c02..dcbf3ebc20 100644 --- a/java/src/main/java/com/powsybl/python/network/NetworkAreaDiagramUtil.java +++ b/java/src/main/java/com/powsybl/python/network/NetworkAreaDiagramUtil.java @@ -183,5 +183,11 @@ private void visitTerminal(Terminal terminal) { } } + + public void visitDanglingLine(DanglingLine danglingLine) { + if (danglingLine.isPaired()) { + danglingLine.getTieLine().ifPresent(tieline -> visitBranch(tieline, tieline.getSide(danglingLine.getTerminal()))); + } + } } }