Class Graph<TNodeData, TLinkData>
Default implementation/inheritance of the GraphBase<TNode, TLink> class in function of analysis and layout.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public class Graph<TNodeData, TLinkData> : GraphBase<Node<TNodeData, TLinkData>, Edge<TNodeData, TLinkData>> where TNodeData : new()
where TLinkData : new()
Type Parameters
TNodeData
|
TLinkData
|
Constructors
Graph()
Graph(GraphBase<Node<TNodeData, TLinkData>, Edge<TNodeData, TLinkData>>)
Initializes a new instance of the Graph<TNodeData, TLinkData> class.
Declaration
public Graph(GraphBase<Node<TNodeData, TLinkData>, Edge<TNodeData, TLinkData>> graphBase)
Parameters
GraphBase<Node<TNodeData, TLinkData>, Edge<TNodeData, TLinkData>>
graphBase
The graph base. |
Remarks
Use this constructor e.g. when converting a spanning tree to this structure.
Graph(IGraph, Boolean, GraphAnalysisSettings)
Initializes a new instance of the Graph class.
Declaration
public Graph(IGraph diagramControl, bool full = true, GraphAnalysisSettings settings = null)
Parameters
IGraph
diagramControl
The diagram Control. |
System.Boolean
full
Transfers the full incidence structure to the Graph<TNodeData, TLinkData>. |
GraphAnalysisSettings
settings
The setting used during translation from control to graph. If set to |
Properties
DiagramControl
IgnoredConnections
Gets or sets ignored connections.
Declaration
public IEnumerable<IConnection> IgnoredConnections { get; set; }
Property Value
System.Collections.Generic.IEnumerable<IConnection>
|
Remarks
These are the connections which have been ignored due to multi-edges or multiple connections between containers.
Root
Gets the root Node of this Graph (assuming that the Graph is tree). If there is no root Node, returns null.
Declaration
public Node<TNodeData, TLinkData> Root { get; set; }
Property Value
Node<TNodeData, TLinkData>
|