create segment as connection between Nodes