Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Using Laplacians to find fiedler values

$
0
0

@ennvvy wrote:

I am trying to find the fiedler value for a directed graph using fiedler command in Laplacians package in Julia.

using LightGraphs
using Laplacians

g=watts_strogatz(100,12,0.0,is_directed=true)
a=adjacency_matrix(g)
l=fiedler(a; nev=1, tol=0.0)

However, I get the following error:

ERROR: InexactError: Int64(0.8333333333333334)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images