Object graph: Difference between revisions

Content deleted Content added
m add context
m Cleanup.
Line 1:
{{Unreferenced|date=OctoberNovember 20092014}}
{{Inappropriate tone|date=DecemberNovember 20072014}}
 
In [[computer science]], an '''object graph''' is a view of an [[object system]] at a particular point in time. Whereas a normal [[data model]] such as a [[Unified Modeling Language|UML]] [[Class diagram]] details the relationships between classes, the object graph relates their instances. [[Object diagram]]s are subsets of the overall object graph.
 
Object-oriented applications contain complex webs of interrelated objects. Objects are linked to each other by one object either owning or containing another object or holding a reference to another object. This web of objects is called an object graph and it is the more abstract structure that can be used in discussing an application's state.
 
Line 9:
 
==Examples==
{{Expand section|date=March 2007}}
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, backLeft and backRight.
Example of an [[adjacency list]] representation: c:Car → {frontLeft:Wheel, frontRight:Wheel, backLeft:Wheel, backRight:Wheel}.
Line 18 ⟶ 17:
 
{{DEFAULTSORT:Object Graph}}
 
[[Category:Data modeling diagrams]]