Object graph: Difference between revisions

Content deleted Content added
fix error
m Corrected misspelled words
Line 13:
 
==Examples==
For instance, a Car class can compose a Wheel one. In the object graph a Car instance will have up to four links to its wheels, which can be named frontLeft, frontRight, backLeftback Left and backRightback Right.
An example of an [[adjacency list]] representation might be something as follows:
 
c:Car → {frontLeftfront Left:Wheel, frontRightfront Right:Wheel, backLeftback Left:Wheel, backRightback Right:Wheel}.
 
==See also==