Class CircularNetwork

GoDiagram®
v10.0.12
by Northwoods Software®

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

Inheritance
CircularNetwork
Namespace: Northwoods.Go.Layouts
Assembly: Northwoods.GoDiagram.Avalonia.CircularLayout.dll
Syntax
public class CircularNetwork : Network<CircularVertex, CircularEdge, CircularLayout>
Remarks

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

Constructors

CircularNetwork(CircularLayout)

This constructs an empty network associated with a given layout.

Declaration
public CircularNetwork(CircularLayout layout)
Parameters
Type Name Description
CircularLayout 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 CircularEdge CreateEdge()
Returns
Type Description
CircularEdge
Overrides
Northwoods.Go.Layouts.Network<Northwoods.Go.Layouts.CircularVertex, Northwoods.Go.Layouts.CircularEdge, Northwoods.Go.Layouts.CircularLayout>.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 CircularVertex CreateVertex()
Returns
Type Description
CircularVertex
Overrides
Northwoods.Go.Layouts.Network<Northwoods.Go.Layouts.CircularVertex, Northwoods.Go.Layouts.CircularEdge, Northwoods.Go.Layouts.CircularLayout>.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.