documentationfor yFiles for HTML 3.0.0.3

Central implementation of the IGraph interface.

Inheritance Hierarchy
Graph
Implemented Interfaces

Remarks

This implementation deals with the proper firing of events and handling of default values.

This implementation has inherent support for undoability. If the undoEngineEnabled property is set to true, changes to the structure of the graph will automatically be recorded using the UndoEngine instance that can be queried from this instance's lookup method. Clients that wish to enqueue custom undo events or that need to make non-structural changes to the graph can use the UndoEngine to do so. The current instance of UndoEngine can be queried using the lookup method of this instance. Also there are several protected methods Create...UndoUnit that will be used by this instance to create the actual undo units for structural changes in the graph's structure. If clients need to customize these units they can create a subclass of Graph and override these methods.

Finally this implementation supports grouped graphs.

Related Reading in the Developer's Guide

DefaultGraph is IGraph's default implementation as described in the section The Graph Model - IGraph.

Related Programming Samples

Graph Editor
Shows the graph editing features of the graph component.

Type Details

yFiles module
view

See Also

Constructors

Properties

Methods

Events

Constants

Static Methods