Skip to content

Commit cc041b8

Browse files
authored
Fix a few typos in the docs (#123)
* Fix a typo and convert LaTex to code inline for readability * Fix a typo.
1 parent da30b3b commit cc041b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/notebooks/triangles.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@
7676
"metadata": {},
7777
"source": [
7878
"## Using Memory to Save Time\n",
79-
"The problem with the original implementation is that $degree(g, v)$ calls to $has_edge$ which is a $log(deg)$ operation.\n",
79+
"The problem with the original implementation is that `degree(g, v)` calls to `has_edge` which is a `log(deg)` operation.\n",
8080
"\n",
8181
"If we use a two pass algorithm to precompute a constant time lookup table.\n",
82-
"The downside is that this lookup table requires $nv(g)$ storage."
82+
"The downside is that this lookup table requires `nv(g)` storage."
8383
]
8484
},
8585
{
@@ -336,7 +336,7 @@
336336
"source": [
337337
"## Bool Array Wins!\n",
338338
"\n",
339-
"It looks like the bool array is slightly faster even though we have to reset it. Lets use that."
339+
"It looks like the bool array is slightly faster even though we have to reset it. Let's use that."
340340
]
341341
},
342342
{

docs/src/ecosystem/graphtypes.md

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

33
## Defined by Graphs.jl
44

5-
_Graphs.jl_ provides two concrete graph types: [`SimpleGraph`](@ref) is an undirected graph, and [`SimpleDiGraph`](@ref) is its directed counterpart. Both of these types can be parameterized to specifying how vertices are identified (by default, `SimpleGraph` and `SimpleDiGraph` use the system default integer type, usually `Int64`).
5+
_Graphs.jl_ provides two concrete graph types: [`SimpleGraph`](@ref) is an undirected graph, and [`SimpleDiGraph`](@ref) is its directed counterpart. Both of these types can be parameterized to specify how vertices are identified (by default, `SimpleGraph` and `SimpleDiGraph` use the system default integer type, usually `Int64`).
66

77
A graph _G_ is described by a set of vertices _V_ and edges _E_: _G = {V, E}_. _V_ is an integer range `1:n`; _E_ is represented using forward (and, for directed graphs, backward) adjacency lists indexed by vertices. Edges may also be accessed via an iterator that yields `Edge` types containing `(src<:Integer, dst<:Integer)` values. Both vertices and edges may be integers of any type, and the smallest type that fits the data is recommended in order to save memory.
88

0 commit comments

Comments
 (0)