GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutGenericNetwork<N,L,Y> Class / AddLink Method / AddLink(IGoLink) Method
In This Topic
    AddLink(IGoLink) Method
    In This Topic
    This convenience method takes a Northwoods.Go.GoObject implementing Northwoods.Go.IGoLink, and returns a GoLayoutGenericNetwork.Link<N,L,Y> that has been added to this network.
    Syntax
    public L AddLink( 
       IGoLink ilink
    )

    Parameters

    ilink

    Return Value

    Remarks
    If FindLink returns null, this method creates a new GoLayoutGenericNetwork.Link<N,L,Y>, makes sure the Northwoods.Go.IGoLink.FromNode and Northwoods.Go.IGoLink.ToNode have corresponding GoLayoutGenericNetwork.Node<N,L,Y>s in the network, and adds the link itself to the network.
    See Also