Disconnecting sets in single and two-terminal-pair networks