topo function

Return the list of topologies, or a unique topology if all identical