Jump to content

Object graph

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 24.91.156.194 (talk) at 17:37, 4 September 2008 (Changed i.e. to e.g.). 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.

Eg A -> B, C B -> D C -> A, D D -> B, A

See also