accept double as weights
create graphset