# Issues with Graphs.jl and GraphPlot

**URL:** https://discourse.julialang.org/t/issues-with-graphs-jl-and-graphplot/76932
**Category:** Graphs
**Tags:** lightgraphs, graphs
**Created:** [February 22, 2022, 8:21pm UTC](https://discourse.julialang.org/t/issues-with-graphs-jl-and-graphplot/76932 "2022-02-22T20:21:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Temi-Tory](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/temi-tory/32/29716_2.png) [@Temi-Tory](https://discourse.julialang.org/u/Temi-Tory)
#### Post date: [February 22, 2022, 8:21pm UTC](https://discourse.julialang.org/t/issues-with-graphs-jl-and-graphplot/76932/1 "2022-02-22T20:21:22Z")

</div>

Hello,  
I am not sure what is causing the following error message and I have been stuck for hours now ☹ please help.

For some reason, gplot is not working.  
My code:

```julia
import Cairo,Fontconfig 
using Random, Graphs, GraphPlot, DelimitedFiles, DataFrames, MetaGraphs
Random.seed!(3033);

data = readdlm("PrPm/Pacific Gas and Electric Power Distribution Network Adjacency matrix.csv", ',', Int, header= false ); 
df = DataFrame(data, :auto);
Adj_pwr_ntwrk = Matrix(df); #Adjacency matrix of the power Network
Pwr_ntwk= Graph(Adj_pwr_ntwrk)
gplot(Pwr_ntwk)

```

The error message:  
ERROR: LoadError: MethodError: no method matching spring\_layout(::SimpleGraph{Int64})

The frustrating thing si, I have been able to plot graphs all day until this error message randomly started showing

---

<div class="post-metadata">

### Author: ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)
#### Post date: [February 25, 2022, 5:57pm UTC](https://discourse.julialang.org/t/issues-with-graphs-jl-and-graphplot/76932/2 "2022-02-25T17:57:18Z")

</div>

Hi!  
Unfortunately your code sample is not reproducible on my computer since I don’t have the underlying file. However, it seems like the method `spring_layout` does exist for `SimpleGraph{Int}`:

```julia
julia> using Graphs, GraphPlot

julia> hasmethod(spring_layout, Tuple{SimpleGraph{Int}})
true

```

Have you tried restarting your REPL? It sometimes happens to me that a type is “imported twice” and some packages try to use the older version.  
If that doesn’t work, can you update your packages and try again?
