GoDiagram Web Reference
ValidCycle Property

Gets or sets whether a valid link can be made between two ports that may produce a directed or undirected cycle in this document.
Syntax
'Declaration
 
<DescriptionAttribute("Whether a valid link can produce a cycle in the graph.")>
<DefaultValueAttribute()>
<CategoryAttribute("Behavior")>
Public Overridable Property ValidCycle As GoDocumentValidCycle
[DescriptionAttribute("Whether a valid link can produce a cycle in the graph.")]
[DefaultValueAttribute()]
[CategoryAttribute("Behavior")]
public virtual GoDocumentValidCycle ValidCycle {get; set;}

Property Value

This defaults to GoDocumentValidCycle.All, resulting in no checks for a new link possibly producing any kind of cycle or loop.
Remarks
IsValidLink uses this property in the following manners:
GoDocumentValidCycle
GoDocumentValidCycle.All produces no checking for cycles.
GoDocumentValidCycle.NotDirected checks for possible cycle consisting of directed links. This check is slower and consumes more memory than the "Fast" version, but will not fail even if there are cycles or loops in the graph.
GoDocumentValidCycle.NotDirectedFast checks for possible cycle consisting of directed links, without concern for any existing directed cycles elsewhere in the graph. Thus using this mode may result in infinite recursion and stack overflows if there happen to be any directed cycles accessible from either port in a call to IsValidLink.
GoDocumentValidCycle.NotUndirected checks for possible cycle consisting of links in either direction.
GoDocumentValidCycle.DestinationTree checks for possible links that would cause the graph no longer to be a tree, with each node having at most one source link.
GoDocumentValidCycle.SourceTree checks for possible links that would cause the graph no longer to be a tree, with each node having at most one destination link.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoDocument Class
GoDocument Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback