Skip to content

Commit

Permalink
Update plot_utils.py
Browse files Browse the repository at this point in the history
define self.num_users
  • Loading branch information
aymann121 authored Nov 11, 2024
1 parent ab9c280 commit 5c0e73e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/utils/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,9 @@ def __init__(self, config, with_title=True) -> None:
self.config = config
self.with_title = with_title
self.nx_layout = None
# self.init_nx_graph(config)
self.num_users = config["num_users"]



# def init_nx_graph(self, config: ConfigType):
# """
# Initialize the networkx graph for the topology.

# Args:
# config (ConfigType): Configuration dictionary.
# rank (int): Rank of the current node.
# """
# self.num_users = config["num_users"]
# self.graph = nx.DiGraph()

def create_adjacency_list(self, file_path: str) -> Dict[str, list]: # type: ignore
# Load the CSV file
"""
Expand Down

0 comments on commit 5c0e73e

Please sign in to comment.