fnss.topologies.simplemodels.ring_topology
fnss.topologies.topology.fan_in_out_capacities
Enter search terms or a module, class or function name.
Return a line topology of nodes
The root node has id 0 while all leaf nodes have id .
Each node has the attribute type which can either be root (for node 0) or leaf for all other nodes
n : int
The number of leaf nodes
topology : A Topology object