Jump to content

Object graph

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Rich Farmbrough (talk | contribs) at 01:03, 6 December 2009 (remove Erik9bot category, no longer needed for this article using Project:AWB). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

An Object Graph is a view of an object system at a particular point in time. Whereas a normal data model details the relationships between objects, the object graph relates the instances.

e.g. Instead of a car having a relationship to a wheel, MyCar has four relationships to four different Wheels (FrontLeft, FrontRight, BackLeft, BackRight).

Examples

Object graph is a term often used with object-oriented applications. 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.

Example: A → {B, C}, B → {D}, C → {A, D}, D → {B, A}.

See also