X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=code%2Fnetwork-generator%2Fnetwork_generation%2Fview%2Fnetwork_viewer.py;h=750a66137a2981e4ad1d3c1c2e75c4cc99bd62dd;hb=refs%2Fheads%2Fmaster;hp=b55b4768dab8a57163605fcf4b9e31f25aabb91c;hpb=28ef5927441476ba78bd04aafec0ccaca7cfc4c5;p=oam.git diff --git a/code/network-generator/network_generation/view/network_viewer.py b/code/network-generator/network_generation/view/network_viewer.py index b55b476..750a661 100644 --- a/code/network-generator/network_generation/view/network_viewer.py +++ b/code/network-generator/network_generation/view/network_viewer.py @@ -58,6 +58,13 @@ class NetworkViewer: """ print(self.__network) + def to_directory(self, parent_dir: str) -> None: + """ + Method converting the network to a subdirectory file structure + """ + self.__network.to_directory(parent_dir) + print(f'Directory structure saved to "{parent_dir}"') + def save(self, filename: str, compressed: bool = True) -> None: """ Method saving the class content to a file in json format.