Optimal Steiner trees under node and edge privacy conflicts