Skip to content

Commit

Permalink
Update Graph-NN.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CowPeas authored Jan 17, 2023
1 parent df45cb1 commit 5ee51e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Graph-NN.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import torch.nn as nn
import torch.optim as optim

# Create a graph representation of the computer network
# Create a graph representation of a simple computer network where A-> B-> C-> D-> E
G = nx.Graph()
G.add_nodes_from(['A', 'B', 'C', 'D', 'E'])
G.add_edges_from([('A', 'B'), ('B', 'C'), ('C', 'D'), ('D', 'E')])
Expand Down

0 comments on commit 5ee51e3

Please sign in to comment.