tqsd / QuNetSim

A quantum network simulation framework.
https://tqsd.github.io/QuNetSim/
MIT License
118 stars 52 forks source link

Write network methods for automatically generating networks #88

Closed stephendiadamo closed 3 years ago

stephendiadamo commented 3 years ago

Is your feature request related to a problem? Please describe.

To more easily generate a network topology, it would be nice to have some build in methods to automatically create some number of hosts with some defined topology e.g. star, line, etc.

Describe the solution you'd like

I'd like to have something like:

hosts = network.generate_topology('star', n=5)

which returns a list of hosts that have the particular topology defined.