Perceptron - Neural Network

This commit is contained in:
Francisco Matias 2017-08-27 08:20:28 -03:00
parent 017b50f76a
commit 419b7bba0d
3 changed files with 12 additions and 10 deletions

View File

@ -42,4 +42,4 @@ g.add_edge(3,7)
g.add_edge(4,8) g.add_edge(4,8)
g.add_edge(5,9) g.add_edge(5,9)
g.add_edge(6,10) g.add_edge(6,10)
g.bfs(1) g.bfs(4)

View File

@ -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(2,3)
g.add_edge(3,4) g.add_edge(3,4)
g.add_edge(3,5) 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() g.show()

View File

@ -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() g.show()