Im trying to make the facility location problem algorithm ,and i got a possible solution , but dont know how to graph it,now im trying to use different layers by each binding line between the supplying center and the supplied point.For example , to make this two lines im using 2 different layers, with two different vectors: Supply point [1,1] and supplied points [5,2] and [2,6] as example:
using Gadfly
plot(layer(x=[1,5], y=[1,2],Geom.point, Geom.path),layer(x=[1,2], y=[1,6],Geom.point, Geom.path))
But, my issue is that i need to make it with hundreds of lines alike,many supplying and supplied points ,so i dont think proper to make a layer by bind. So , when try to make something like:
x=[1,2],[3,4]
y=[3,4],[2,4]
plot(layer(x[:], y[:],Geom.point, Geom.path))
I get a error. Regards