mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 23:11:09 +00:00
Perceptron - Neural Network
This commit is contained in:
parent
017b50f76a
commit
419b7bba0d
|
@ -42,4 +42,4 @@ g.add_edge(3,7)
|
|||
g.add_edge(4,8)
|
||||
g.add_edge(5,9)
|
||||
g.add_edge(6,10)
|
||||
g.bfs(1)
|
||||
g.bfs(4)
|
||||
|
|
|
@ -15,13 +15,16 @@ class Graph:
|
|||
|
||||
|
||||
|
||||
g = Graph(5)
|
||||
g = Graph(100)
|
||||
|
||||
g.add_edge(1,3)
|
||||
'''g.add_edge(1,3)
|
||||
g.add_edge(2,3)
|
||||
g.add_edge(3,4)
|
||||
g.add_edge(3,5)
|
||||
g.add_edge(4,5)
|
||||
g.add_edge(4,5)'''
|
||||
for i in range(100):
|
||||
for j in range(100):
|
||||
g.add_edge(i,j)
|
||||
|
||||
g.show()
|
||||
|
||||
|
|
|
@ -18,13 +18,12 @@ class Graph:
|
|||
|
||||
|
||||
|
||||
g = Graph(5)
|
||||
g = Graph(100)
|
||||
|
||||
for i in range(100):
|
||||
for j in range(100):
|
||||
g.add_edge(i,j)
|
||||
|
||||
g.add_edge(1,3)
|
||||
g.add_edge(2,3)
|
||||
g.add_edge(3,4)
|
||||
g.add_edge(3,5)
|
||||
g.add_edge(4,5)
|
||||
|
||||
g.show()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user