Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

LayeredDigraphLayout not showing disconnected nodes

$
0
0

@FZSS wrote:

I have a graph with disconnected nodes

If I use a LayeredDigraphLayout, the disconnected nodes would not show up,

          $(go.LayeredDigraphLayout,
            {
              isOngoing: false,
              layerSpacing: 20,
              setsPortSpots: false,
              columnSpacing: 20,
              isRouting: true,
              isValidLayout: true,
              isViewportSized: true,
              aggressiveOption: go.LayeredDigraphLayout.AggressiveMore,
              cycleRemoveOption: go.LayeredDigraphLayout.CycleDepthFirst,
              initializeOption: go.LayeredDigraphLayout.InitDepthFirstOut,
              layeringOption: go.LayeredDigraphLayout.LayerOptimalLinkLength,
              packOption: go.LayeredDigraphLayout.PackAll,
            },
          ),

but the following tree layout would render the disconnected nodes, can you tell me how would I fix my LayeredDigraphLayout to display the disconnected nodes?

          $(go.TreeLayout,
            {
              comparer: go.LayoutVertex.smartComparer,
              alignment: go.TreeLayout.AlignmentStart,
              treeStyle: go.TreeLayout.StyleRootOnly,
              layerStyle: go.TreeLayout.LayerUniform,
              nodeIndent: 100,
              layerSpacing: 100,
              compaction: go.TreeLayout.CompactionNone,
            },
          ),

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles