From c8e7ee18ce46cf1fd078e345c207fb6263526cd2 Mon Sep 17 00:00:00 2001 From: Ertan Onur Date: Fri, 29 Apr 2022 16:38:54 +0300 Subject: [PATCH] Refactored phy --- adhoccomputing/Experimentation/Topology.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/adhoccomputing/Experimentation/Topology.py b/adhoccomputing/Experimentation/Topology.py index a73cb1e..92a954c 100644 --- a/adhoccomputing/Experimentation/Topology.py +++ b/adhoccomputing/Experimentation/Topology.py @@ -39,6 +39,15 @@ def construct_winslab_topology_without_channels(self, nodecount, nodetype, conte self.nodes[i] = cc + def construct_winslab_topology_without_channels_for_docker(self, nodetype, id, context=None): + + self.G = nx.Graph() + self.G.add_nodes_from(range(1)) # TODO : Change depending on the + + nodes = list(self.G.nodes) + cc = nodetype(nodetype.__name__, id) + self.nodes[0] = cc + def construct_from_graph(self, G: nx.Graph, nodetype, channeltype, context=None): self.G = G nodes = list(G.nodes)