Hi everyone!
I would like to know if there is a way with GraphPlot
and gplot()
to make a simple bipartite graph representation (one “column” for each node category) ?
Here is a small sample of my code
bigraph = MetaGraph(SimpleGraph())
add_vertices!(bigraph,100)
for i in 1:50
set_prop!(bigraph, i, :cat, "person")
end
for i in 51:100
set_prop!(bigraph, i, :cat, "event")
end
I thought i could use locs_x
and locs_y
to set manually the position of the nodes but it doesn’t work.
locs_x = Vector()
for i in 1:100
if i < 51
push!(locs_x, 1.00)
else
push!(locs_x, 2.00)
end
end
locs_y = Vector()
for i in 1:100
if i < 51
push!(locs_y, Float64(i))
else
push!(locs_y, Float64(i-51))
end
end
I think that I don’t understand how to use locs_x
and locs_y
Thanks a lot for your help!
Best,
Josselin.