Skip to content

Commit d8f642f

Browse files
author
Vincent Landau
committed
fix deps, exports, update docs
1 parent 75bbf73 commit d8f642f

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
SpatialGraphs.jl introduces the `AbstractSpatialGraph`. `AbstractSpatialGraphs`
44
are a subtype of `LightGraphs.AbstractGraph`, and can be weighted or directed.
5-
AbstractSpatialGraphs are AbstractGraphs, methods from LightGraphs.jl and
6-
SimpleWeightedGraphs.jl work right out of the box.
5+
AbstractSpatialGraphs are AbstractGraphs, methods from LightGraphs.jl work right
6+
out of the box.
77

88
`AbstractSpatialGraph`s themselves contain an `AbstractGraph` in addition to
99
metadata that details the spatial location of each vertex in the

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ are a subtype of `LightGraphs.AbstractGraph`, and can be weighted or directed.
55
SpatialGraphs.jl is useful for turning spatial data into graphs. This can be
66
useful for landscape connectivity analysis, hydrology, and other spatial
77
network processes. AbstractSpatialGraphs are AbstractGraphs, methods from
8-
LightGraphs.jl and SimpleWeightedGraphs.jl work right out of the box.
8+
LightGraphs.jl work right out of the box.
99
Go to [Graph Types](@ref) for more details on the graph types implemented in
1010
this package.
1111

src/SpatialGraphs.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module SpatialGraphs
22

3-
using LightGraphs, SimpleWeightedGraphs, ArchGDAL
3+
using LightGraphs, SimpleWeightedGraphs, ArchGDAL, GeoData
44

55
include("structs.jl")
66
include("graph_interface.jl")
77
## Types and Structs
8-
export AbstractSpatialGraph, AbstractSpatialWeightedGraph, RasterGraph,
9-
RasterDiGraph, WeightedRasterGraph, WeightedRasterDiGraph
8+
export AbstractSpatialGraph, AbstractRasterGraph, SimpleRasterGraphs,
9+
SimpleRasterDiGraph, WeightedRasterGraph, WeightedRasterDiGraph
1010

1111
end # module

src/graph_interface.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,4 @@ has_vertex(g::AbstractSpatialGraph, v) = has_vertex(g.graph, v)
1313
inneighbors(g::AbstractSpatialGraph, v) = inneighbors(g.graph, v)
1414
outneighbors(g::AbstractSpatialGraph, v) = outneighbors(g.graph, v)
1515
is_directed(g::AbstractSpatialGraph) = is_directed(g.graph)
16-
Base.zero(g::AbsractSpatialGraph) = zero(g.graph)
17-
18-
### SimpleWeightedGraphs interface
19-
get_weight(g::AbstractWeightedSpatialGraph, u::Integer, v::Integer) = get_weight(g.graph, u, v)
16+
Base.zero(g::AbstractSpatialGraph) = zero(g.graph)

0 commit comments

Comments
 (0)