Skip to content

Commit f10be3e

Browse files
authored
Merge pull request #17 from JuliaGraphs/sbromberger/fix-13
Sbromberger/fix 13
2 parents d90eedb + ca2250c commit f10be3e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/StaticGraphs.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ const AbstractStaticEdge{T} = AbstractSimpleEdge{T}
4444
const StaticEdge{T} = SimpleEdge{T}
4545

4646
"""
47-
AbstractStaticGraph
47+
AbstractStaticGraph{T, U}
4848
49-
An abstract type representing a simple graph structure.
50-
AbstractStaticGraphs must have the following elements:
51-
- weightmx::AbstractSparseMatrix{Real}
49+
An abstract type representing a simple graph structure parameterized by integer types
50+
- `T`: the type representing the graph's vertices
51+
- `U`: the type representing the number of edges in the graph
5252
"""
5353
abstract type AbstractStaticGraph{T<:Integer, U<:Integer} <: AbstractSimpleGraph{T} end
5454

src/staticdigraph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
StaticDiGraph{T, U}
2+
StaticDiGraph{T, U} <: AbstractStaticGraph{T, U}
33
44
A type representing a static directed graph.
55
"""

src/staticgraph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33
"""
4-
StaticGraph{T, U}
4+
StaticGraph{T, U} <: AbstractStaticGraph{T, U}
55
66
A type representing an undirected static graph.
77
"""

0 commit comments

Comments
 (0)