The laplacian_matrix function for SimpleWeightedDigraph uses dir=:out as default for the dir parameter. This contrasts with the definition in Graphs.jl where dir=:both is the default for directed graphs.
While I may agree that dir=:out could be a saner default, the problem is that the documentation of the function is only present in the Graphs package and mentions that the default is dir=:both for directed graphs. After looking at the doc at the REPL, the user may expect the default to be dir=:both when it is in fact dir=:out for SimpleWeightedDigraph.
The
laplacian_matrixfunction forSimpleWeightedDigraphusesdir=:outas default for thedirparameter. This contrasts with the definition inGraphs.jlwheredir=:bothis the default for directed graphs.While I may agree that
dir=:outcould be a saner default, the problem is that the documentation of the function is only present in theGraphspackage and mentions that the default isdir=:bothfor directed graphs. After looking at the doc at the REPL, the user may expect the default to bedir=:bothwhen it is in factdir=:outforSimpleWeightedDigraph.