@@ -23,7 +23,7 @@ julia> is_ordered(first(edges(g)))
2323false
2424```
2525"""
26- is_ordered (e:: AbstractEdge ) = src (e) <= dst (e)
26+ is_ordered (e:: AbstractEdge ) = src (e) <= dst (e)
2727
2828"""
2929 add_vertices!(g, n)
@@ -48,7 +48,7 @@ add_vertices!(g::AbstractGraph, n::Integer) = sum([add_vertex!(g) for i in 1:n])
4848 indegree(g[, v])
4949
5050Return a vector containing the indegrees of every vertex of the graph `g`, where
51- the indegree of a vertex is defined as the number of edges which end at that
51+ the indegree of a vertex is defined as the number of edges which end at that
5252vertex. If `v` is specified and is a single vertex, only return the indegree of
5353`v`. If `v` is specified and is a vector of vertices, only return the indegrees
5454of the vertices in `v`.
@@ -85,7 +85,7 @@ indegree(g::AbstractGraph, vs=vertices(g)) = [indegree(g, x) for x in vs]
8585 outdegree(g[, v])
8686
8787Return a vector containing the outdegrees of every vertex of the graph `g`, where
88- the outdegree of a vertex is defined as the number of edges which start at that
88+ the outdegree of a vertex is defined as the number of edges which start at that
8989vertex. If `v` is specified and is a single vertex, only return the outdegree of
9090`v`. If `v` is specified and is a vector of vertices, only return the outdegrees
9191of the vertices in `v`.
@@ -124,7 +124,7 @@ outdegree(g::AbstractGraph, vs=vertices(g)) = [outdegree(g, x) for x in vs]
124124Return a vector containing the degrees of every vertex of the graph `g`, where
125125the degree of a vertex is defined as the number of edges which start or end at
126126that vertex. For directed graphs, the degree of a vertex is equal to the sum of
127- its indegree and outdegree. If `v` is specified and is a single vertex, only
127+ its indegree and outdegree. If `v` is specified and is a single vertex, only
128128return the degree of `v`. If `v` is specified and is a vector of vertices, only
129129return the degrees of the vertices in `v`.
130130
0 commit comments