Skip to content

Commit 3dd44ec

Browse files
committed
Added back dot generate for visualization
1 parent f869858 commit 3dd44ec

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/perf/affinity.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,14 @@ def generate_routes(self):
386386
routes.add(Conn(node_data.name, conn, 1))
387387
return routes
388388

389+
def generate_dot(self):
390+
dot_data = "graph {"
391+
for node, node_data in self.nodes.items():
392+
for conn in node_data.connections:
393+
dot_data += f"{node} -- {conn}; "
394+
dot_data += "}"
395+
return dot_data
396+
389397
def start(self, wait=True):
390398
self.dump_yaml()
391399

0 commit comments

Comments
 (0)