Comments (3)
Maybe I misunderstood it. I thought it's like in the train. The tail is at the end of the train and the head is at the beginning, so the train driver is in the head of the train.
As far as I understand it, it is the same with trains. When the driver is at the head of the train, the cars behind him (its successors) are linked as a single linked list, while the last one has no successor. New cars are added at the end (the tail) of the train. Since finding the end of a linked list requires traversing the entire list, which is not the case for a train, the tail is used to find the end more quickly. Predecessor links enable moving in both directions in the list, which is not required with a train. Almost all implementations of doubly-linked lists, that I know of, use this notation.
from blosm.
Everything is OK, it's a Street
with a SideLane
in the linked list:
street.tail = Section s2
street.head = Section s1
street.tail.succ = s2.succ = None
street.tail.pred = SideLane sl2
Please use lower case letters for id
, Street.ID
is the class variable, that counts the sum of instances of the class.
from blosm.
Maybe I misunderstood it. I thought it's like in the train. The tail is at the end of the train and the head is at the beginning, so the train driver is in the head of the train.
from blosm.
Related Issues (20)
- Modify iterable while iteration HOT 1
- Additional data for the street renderer HOT 1
- [question] How to configure which OSM-ways are processed HOT 1
- Experiments around clustering of intersections HOT 5
- Inconsistency in the returned data (berlin_karl_marx_allee.osm) HOT 6
- Street sections with an offset don't fit intersections HOT 2
- A problem with a style block assignment HOT 5
- Splitting a section HOT 18
- Question: Are the attributes succ and pred already set by the call of street.setStyleForItems(streetStyle)? HOT 6
- Question: pred-succ vs incoming-outgoing in the class SideLane HOT 4
- Omitting the intersection connectors HOT 8
- Sections don't fit each other after applying the offset HOT 4
- A code for the intersection point of 2 line segments HOT 4
- Weird polylines HOT 2
- A change in the data structure for intersections HOT 2
- street.pred is None and street.succ is None for street.id == 503 HOT 2
- T-shape intersections HOT 9
- Enabling Bundles and intersections with Bundles, produced in StreetGenerator HOT 31
- item.street was not updated after the street extension HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blosm.