getHiddenConnections method
Gets all hidden connections in the graph.
A connection is hidden when either its source or target node is hidden.
Implementation
List<Connection> getHiddenConnections() {
return _connections.where((connection) {
final sourceNode = _nodes[connection.sourceNodeId];
final targetNode = _nodes[connection.targetNodeId];
return sourceNode == null ||
targetNode == null ||
!sourceNode.isVisible ||
!targetNode.isVisible;
}).toList();
}