Verification Log: 15_graph.txt

Original companion example or verification log for the tutorial, preserved with user paths redacted; execution scope follows the recorded run.

Adjacency list: {'A': ['B', 'C'], 'B': ['A', 'D'], 'C': ['A', 'D'], 'D': ['B', 'C', 'E'], 'E': ['D']}
Adjacency matrix:
   A B C D E
A  0 1 1 0 0
B  1 0 0 1 0
C  1 0 0 1 0
D  0 1 1 0 1
E  0 0 0 1 0
Node degrees: {'A': 2, 'B': 2, 'C': 2, 'D': 3, 'E': 1}
Topological order (execution order): ['download', 'tokenize', 'train', 'eval', 'report']
Cycle detected: ['a', 'b', 'a']
n=10000, m=50000: adjacency matrix requires 100,000,000 cells; adjacency list stores ~100,000 entries
Back to Tutorials Back to Learn →Back to top ↑
On this page
Tutorial diagram100%
Tutorial diagram