Implement lines with multiple nodes.