Object graph: Difference between revisions

Content deleted Content added
m ce my prod template
Tags: Reverted Visual edit
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1:
{{short description|Network representation of the relationships between objects in a program}}
{{mi|
{{Proposed deletion/dated
|concern = Does not cite any sources, has been long unsourced (template is from 2014, aka almost 10 YEARS ago). In addition, why is this notable? And the [[Wikipedia:Writing_better_articles#Tone|tone]] is very unencyclopedic (and this problem has also has had its template since 2014). This article has had these problems since 2014, and it hasn't improved. Should be deleted.
|timestamp = 20240415173730
|nom = TheTechie
|help = off
}}
{{Unreferenced|date=November 2014}}
{{Inappropriate tone|date=November 2014}}}}
 
In [[computer science]], in an [[Object-oriented programming|object-oriented program]], groups of [[Object (computer science)|objects]] form a network through their relationships with each other, either through a direct [[Reference (computer science)|reference]] to another object or through a chain of intermediate references. These groups of objects are referred to as '''object graphs''', after the mathematical objects called [[Graph (discrete mathematics)|graphs]] studied in [[graph theory]].
 
An '''object graph''' is a view of an [[object system]] at a particular point in time. Unlike a normal [[data model]] such as a [[Unified Modeling Language]] (UML) [[class diagram]], which details the relationships between [[Class (computer programming)|classes]], the object graph relates their [[Instance (computer science)|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.