Skip to content

Commit b1394ac

Browse files
authored
Update GraphPlot.jl (#33)
Requires LG 0.7.6 for Julia 0.5, fixes for Julia 0.6.
1 parent ef04abd commit b1394ac

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/GraphPlot.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ end
4141

4242
# These functions are mappings to various graph packages.
4343
# Currently only LightGraphs is supported.
44-
_nv(g::LightGraphs.SimpleGraph) = LightGraphs.nv(g)
45-
_ne(g::LightGraphs.SimpleGraph) = LightGraphs.ne(g)
46-
_vertices(g::LightGraphs.SimpleGraph) = LightGraphs.vertices(g)
47-
_edges(g::LightGraphs.SimpleGraph) = LightGraphs.edges(g)
48-
_src_index(e::LightGraphs.Edge, g::LightGraphs.SimpleGraph) = LightGraphs.src(e)
49-
_dst_index(e::LightGraphs.Edge, g::LightGraphs.SimpleGraph) = LightGraphs.dst(e)
50-
_adjacency_matrix(g::LightGraphs.SimpleGraph) = LightGraphs.adjacency_matrix(g)
51-
_is_directed(g::LightGraphs.SimpleGraph) = LightGraphs.is_directed(g)
52-
_laplacian_matrix(g::LightGraphs.SimpleGraph) = LightGraphs.laplacian_matrix(g)
44+
_nv(g::LightGraphs.AbstractGraph) = LightGraphs.nv(g)
45+
_ne(g::LightGraphs.AbstractGraph) = LightGraphs.ne(g)
46+
_vertices(g::LightGraphs.AbstractGraph) = LightGraphs.vertices(g)
47+
_edges(g::LightGraphs.AbstractGraph) = LightGraphs.edges(g)
48+
_src_index(e::LightGraphs.Edge, g::LightGraphs.AbstractGraph) = LightGraphs.src(e)
49+
_dst_index(e::LightGraphs.Edge, g::LightGraphs.AbstractGraph) = LightGraphs.dst(e)
50+
_adjacency_matrix(g::LightGraphs.AbstractGraph) = LightGraphs.adjacency_matrix(g)
51+
_is_directed(g::LightGraphs.AbstractGraph) = LightGraphs.is_directed(g)
52+
_laplacian_matrix(g::LightGraphs.AbstractGraph) = LightGraphs.laplacian_matrix(g)
5353
end # module

0 commit comments

Comments
 (0)