# Plotting bipartite graph

**URL:** <https://discourse.julialang.org/t/plotting-bipartite-graph/68443>\
**Category:** Visualization\
**Tags:** plotting, network-analysis\
**Created:** [September 20, 2021, 7:43am UTC](https://discourse.julialang.org/t/plotting-bipartite-graph/68443 "2021-09-20T07:43:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sardinecan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sardinecan/32/29141_2.png) [@sardinecan](https://discourse.julialang.org/u/sardinecan)\
**Post date:** [September 20, 2021, 7:43am UTC](https://discourse.julialang.org/t/plotting-bipartite-graph/68443/1 "2021-09-20T07:43:23Z")

</div>

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) ?

 ![Simple-bipartite-graph](https://global.discourse-cdn.com/julialang/original/3X/7/c/7c97acf819de67f79bc7459b7b01f8a5cb12844e.jpeg)

Here is a small sample of my code

```julia
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.

```julia
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.
