code: public Boolean updateTopology(TopologyAPI.Topology topology, String topologyName) {
      if (getTopology(topologyName) != null) {
        deleteTopology(topologyName);
      }
      return setTopology(topology, topologyName);
    }
docs: Update the topology definition for the given topology. If the topology doesn't exist,
  create it. If it does, update it.
  
  @param topologyName the name of the topology
  @return Boolean - Success or Failure