Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to obtain the eigenvector for the following graph?

G=graphs.EmptyGraph()

G.add_edges([(1,2),(2,3),(2,4),(1,6),(1,5)]) G.show()

l=G.laplacian_matrix()

show(l)

g=l[[1,2,3,4,5],[1,2,3,4,5]]

d=~g

show(d)

t=d[[0,1,2],[0,1,2]]

show(t)

Q=matrix(QQ,3 , 3, lambda x, y: 1)

e=t-0.5*Q

z=e.eigenvectors_right()

z.sort()

show(z)

My eigenvectors are not coming and sage is giving some error report. How to recover it?

click to hide/show revision 2
None

How to obtain the eigenvector for the following graph?

G=graphs.EmptyGraph()

G=graphs.EmptyGraph() G.add_edges([(1,2),(2,3),(2,4),(1,6),(1,5)]) G.show()

l=G.laplacian_matrix()

show(l)

g=l[[1,2,3,4,5],[1,2,3,4,5]]

d=~g

show(d)

t=d[[0,1,2],[0,1,2]]

show(t)

G.show() l=G.laplacian_matrix() show(l) g=l[[1,2,3,4,5],[1,2,3,4,5]] d=~g show(d) t=d[[0,1,2],[0,1,2]] show(t) Q=matrix(QQ,3 , 3, lambda x, y: 1)

e=t-0.5*Q

z=e.eigenvectors_right()

z.sort()

1) e=t-0.5*Q z=e.eigenvectors_right() z.sort() show(z)

My eigenvectors are not coming and sage is giving some error report. How to recover it?

click to hide/show revision 3
None

How to obtain the eigenvector for the following graph?

Here is some code:

G=graphs.EmptyGraph()
 G.add_edges([(1,2),(2,3),(2,4),(1,6),(1,5)])
 G.show()
 l=G.laplacian_matrix()
 show(l)
 g=l[[1,2,3,4,5],[1,2,3,4,5]]
 d=~g
 show(d)
 t=d[[0,1,2],[0,1,2]]
 show(t)
 Q=matrix(QQ,3 , 3, lambda x, y: 1)
 e=t-0.5*Q
 z=e.eigenvectors_right()
 z.sort()
    show(z)

show(z)

My eigenvectors are not coming and sage is giving some error report. How to recover it?