Skip to content

Commit 4d574e0

Browse files
committed
clean up repo:
-move layouts to layouts.jl -add community_layout to readme -remove deprecations -remove shape.jl and pienode.jl (not used anywhere)
1 parent ef373d5 commit 4d574e0

9 files changed

+301
-435
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,19 @@ locs_x, locs_y = shell_layout(g, nlist)
127127
gplot(g, locs_x, locs_y, nodelabel=nodelabel)
128128
```
129129

130+
### stress majorize layout
131+
```julia
132+
gplot(g, layout=stressmajorize_layout)
133+
```
134+
135+
### community layout
136+
```julia
137+
community_id = rand(1:3, nv(g)) #membership for each node
138+
node_c = [colorant"red",colorant"yellow",colorant"blue"] #colors for each community
139+
locs_x, locs_y = community_layout(g,community_id)
140+
gplot(g, locs_x, locs_y, nodefillc = node_c[community_id])
141+
```
142+
130143
## Curve edge
131144
```julia
132145
gplot(g, linetype=:curve)
@@ -159,7 +172,7 @@ gplot(h)
159172
+ `locs_x, locs_y` Locations of the nodes (will be normalized and centered). If not specified, will be obtained from `layout` kwarg.
160173

161174
# Keyword Arguments
162-
+ `layout` Layout algorithm: `random_layout`, `circular_layout`, `spring_layout`, `shell_layout`, `stressmajorize_layout`, `spectral_layout`. Default: `spring_layout`
175+
+ `layout` Layout algorithm: `random_layout`, `circular_layout`, `spring_layout`, `shell_layout`, `stressmajorize_layout`, `spectral_layout`, `community_layout`. Default: `spring_layout`
163176
+ `max_nodesize` Max size for the nodes. Default: `3.0/sqrt(N)`
164177
+ `nodesize` Relative size for the nodes, can be a Vector. Default: `1.0`
165178
+ `nodelabel` Labels for the vertices, a Vector or nothing. Default: `nothing`

src/GraphPlot.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,11 @@ export
1717
shell_layout,
1818
stressmajorize_layout
1919

20-
include("deprecations.jl")
21-
2220
# layout algorithms
2321
include("layout.jl")
24-
include("stress.jl")
2522

2623
# ploting utilities
27-
include("shape.jl")
2824
include("lines.jl")
2925
include("plot.jl")
30-
include("collapse_plot.jl")
3126

3227
end # module

src/collapse_plot.jl

Lines changed: 0 additions & 96 deletions
This file was deleted.

src/deprecations.jl

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)