Skip to content

Commit

Permalink
Update adjacency_visualization.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojukka5 committed Jul 20, 2017
1 parent 8a9c32f commit 5232f9b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/adjacency_visualization.jl
Expand Up @@ -4,13 +4,12 @@
"""
adjacency_visualization(RCM_adjacency::Dict{Int, Vector{Int}})
Visualizes adjacency graph Dicts as matrices. Uses PyPlot function matshow(). A part of the Reverse Cuthill-McKee Algorithm.
Visualizes adjacency graph Dicts as matrices. Result can be plotted using `PyPlot` function `matshow()`.
A part of the Reverse Cuthill-McKee Algorithm.
# Examples
```jldoctest
julia> using PyPlot
julia> RCM_adjacency = Dict{Int, Vector{Int}}(
7 => [5, 6, 9],
9 => [7, 8],
Expand Down Expand Up @@ -43,6 +42,5 @@ function adjacency_visualization(RCM_adjacency::Dict{Int, Vector{Int}})
m[k, i]=1
end
end
matshow(m)
return m
end

0 comments on commit 5232f9b

Please sign in to comment.