Topology generator