GoJS API
/ to search
    Preparing search index...

    Class CircularNetworkUnindexed

    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.

    This class inherits from LayoutNetwork.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods

    • Creates a network of LayoutVertexes and LayoutEdges corresponding to the given Nodes and Links. This is usually more convenient than repeatedly calling addNode and addLink. This method ignores all instances of Parts that are not Nodes or Links. This will recurse through Groups that have no Group.layout.

      Parameters

      • parts: Iterable<Part>

        A collection of Nodes or Links.

      • Optionaltoplevelonly: boolean

        whether to skip Parts in the given collection that are contained by Groups; default is false

      • Optionalpred: ((a: Part) => boolean) | null

        optional predicate to apply to each Part -- if it returns false do not include Vertex or Edge in the network; default ignores link label nodes or links connecting with them

      Returns void

    • Modify this network by splitting it up into separate subnetworks, each of which has all of its vertexes connected to each other, but not to any vertexes in any other subnetworks.

      This method will first delete from this network all artificial vertexes and all edges that do not connect two different vertexes. Afterwards, this original network may be empty or may contain all of the singleton vertexes, each of which had no edges connecting it to any other vertexes.

      Parameters

      • Optionalclean: boolean

        whether to delete artificial vertexes and edges, disconnected edges, and reflexive edges; default is true

      Returns List<LayoutNetwork>

      a collection of LayoutNetworks, sorted in order of decreasing vertex count.