Class LayeredDigraphNetwork

GoDiagram®
v10.0.11
by Northwoods Software®

This class represents an abstract graph of LayeredDigraphVertexes and LayeredDigraphEdges that can be constructed based on the Nodes and Links of a Diagram so that the LayeredDigraphLayout can operate independently of the diagram until it is time to commit any node positioning or link routing.

Namespace: Northwoods.Go.Layouts
Assembly: Northwoods.GoDiagram.Avalonia.LayeredDigraphLayout.dll
Syntax
public class LayeredDigraphNetwork : Network<LayeredDigraphVertex, LayeredDigraphEdge, LayeredDigraphLayout>
Remarks

This class inherits from Network<V, E, Y>.

Constructors

LayeredDigraphNetwork(LayeredDigraphLayout)

This constructs an empty network associated with a given layout.

Declaration
public LayeredDigraphNetwork(LayeredDigraphLayout layout)
Parameters
Type Name Description
LayeredDigraphLayout layout
Remarks

It is commonplace to call AddParts(IEnumerable<Part>, bool, Predicate<Part>) to build up the network to have the same structure as a Diagram's or Group's nodes and links.

Methods

CreateEdge()

Allocate a new instance of Network<V, E, Y>.Edge.

Declaration
public override LayeredDigraphEdge CreateEdge()
Returns
Type Description
LayeredDigraphEdge
Overrides
Northwoods.Go.Layouts.Network<Northwoods.Go.Layouts.LayeredDigraphVertex, Northwoods.Go.Layouts.LayeredDigraphEdge, Northwoods.Go.Layouts.LayeredDigraphLayout>.CreateEdge()
Remarks

This is overridden in Network subclasses to create instances of subclasses of Network<V, E, Y>.Edge. Please read the Introduction page on Extensions for how to override methods and how to call this base method.

CreateVertex()

Allocate a new instance of Network<V, E, Y>.Vertex.

Declaration
public override LayeredDigraphVertex CreateVertex()
Returns
Type Description
LayeredDigraphVertex
Overrides
Northwoods.Go.Layouts.Network<Northwoods.Go.Layouts.LayeredDigraphVertex, Northwoods.Go.Layouts.LayeredDigraphEdge, Northwoods.Go.Layouts.LayeredDigraphLayout>.CreateVertex()
Remarks

This is overridden in Network subclasses to create instances of subclasses of Network<V, E, Y>.Vertex. Please read the Introduction page on Extensions for how to override methods and how to call this base method.