This class is an adapter which creates a Graph from arbitrary business data (objects).

Namespace: yWorks.yFiles.UI.DataBinding
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version:


public class AdjacentEdgesGraphSource : DependencyObject, ISupportInitialize, IStyleHolder
Visual Basic
Public Class AdjacentEdgesGraphSource _ Inherits DependencyObject _ Implements ISupportInitialize, IStyleHolder


The nodes in the graph are determined using the NodesSource, InEdgesBinding and OutEdgesBinding properties, that is, a node is created for a business objects that is the source or target of an edge binding even if it is not part of the NodesSource.The in-edges and out-edges bindings define the respective edges and, thereby, the direct neighbors of a node. Nodes will be visualized using the Style for NodeControls has been assigned to the NodeControlStyle property.

This class can be used to dynamically update the Graph when the underlying collection of the business objects changes. In this case, the nodes specified by NodesSource are always present. All other nodes, that are the ones defined only in the in-edges or out-edges binding, persist only if they are reachable by a sequence of edge bindings that originates at a node specified by NodesSource. If an in-edge or out-edge connection is removed dynamically, graph components that are no longer reachable by a sequence of edge bindings from a node specified by NodesSource are completely removed from the graph.

Inheritance Hierarchy


See Also