Skip to content

Commit

Permalink
lint: Python sources
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Oct 7, 2024
1 parent 23a4085 commit 8d494bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions floogen/model/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,8 @@ def render_network(self):

def visualize(self, savefig=True, filename: pathlib.Path = "network.png"):
"""Visualize the network graph."""
ni_nodes = [name for name in self.graph.get_ni_nodes(with_obj=False, with_name=True)]
router_nodes = [name for name in self.graph.get_rt_nodes(with_obj=False, with_name=True)]
ni_nodes = self.graph.get_ni_nodes(with_obj=False, with_name=True)
router_nodes = self.graph.get_rt_nodes(with_obj=False, with_name=True)
filtered_graph = self.graph.subgraph(ni_nodes + router_nodes)
nx.draw(filtered_graph, with_labels=True)
if savefig:
Expand Down

0 comments on commit 8d494bd

Please sign in to comment.