GoXam for WPF v3
IsRelinkValid Method (GraphLinksModel<NodeType,NodeKey,PortKey,LinkType>)
Northwoods.GoXam.Model Namespace > GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class : IsRelinkValid Method
a node key identifying the node data from which the link comes
an optional value identifying which port on the "from" node the link is connected to
a node key identify the node data to which the link goes
an optional value identifying which port on the "to" node the link is connected to
the original link data that might be modified
This predicate is true if replacing a link between two nodes/ports would result in a valid graph.
Syntax

Parameters

fromdata
a node key identifying the node data from which the link comes
fromparam
an optional value identifying which port on the "from" node the link is connected to
todata
a node key identify the node data to which the link goes
toparam
an optional value identifying which port on the "to" node the link is connected to
oldlinkdata
the original link data that might be modified
Remarks
This just calls CheckLinkValid to do the actual graph structure check.
See Also

Reference

GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class
GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Members
ValidCycle Property
ValidUnconnectedLinks Property