Also parse input from a string. Parse topology from popen output.