Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 18.104.22.168
public class AdjacentNodesGraphSource : , ,
Public Class AdjacentNodesGraphSource _ Inherits _ Implements ,
The nodes in the graph are determined using the NodesSource, PredecessorsBinding and SuccessorsBinding properties. The predecessors and successors bindings define the direct neighbors of a node. Edges are automatically added between a node and its predecessors and successors. Nodes will be visualized using the 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 predecessor or successor binding, persist only if they are reachable by a sequence of neighborhood bindings that originates at a node specified by NodesSource. If a predecessor or successor connection is removed dynamically, graph components that are no longer reachable by a sequence of neighborhood bindings from a node specified by NodesSource are completely removed from the graph.