Skip to content

Commit

Permalink
Refactored phy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ertan Onur authored and Ertan Onur committed Apr 29, 2022
1 parent 76e2f8b commit c8e7ee1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions adhoccomputing/Experimentation/Topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c8e7ee1

Please sign in to comment.