This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Subgraph
mattt edited this page Nov 16, 2020
·
10 revisions
@dynamicMemberLookup public struct Subgraph: Hashable
Hashable
public init(id: String? = nil)
public init(id: String? = nil, _ builder: () -> SubgraphMember)
var id: String?
var nodes: [Node] = []
var edges: [Edge] = []
var attributes: Attributes
Returns whether the subgraph is empty.
var isEmpty: Bool
A subgraph is considered to be empty if it has no edges, has no nodes with attributes, and has no attributes itself.
public mutating func append(_ node: @autoclosure () -> Node)
public mutating func append(_ edge: @autoclosure () -> Edge)
Generated at 2021-01-07T20:25:50+0000 using swift-doc 1.0.0-beta.5.
Types
- AspectRatio
- Attribute
- Color
- Color.GradientStyle
- Color.Name
- DOTEncoder
- DOTEncoder.Delimiter
- Edge
- Edge.Arrow
- Edge.Arrow.Shape
- Edge.Arrow.Side
- Edge.Attributes
- Edge.Direction
- Edge.Port
- Edge.Style
- Error
- Format
- Graph
- Graph.Attributes
- Graph.ClusterMode
- Graph.FontNamingConvention
- Graph.InitialNodeLayoutStrategy
- Graph.LabelScheme
- Graph.Mode
- Graph.Orientation
- Graph.OutputOrder
- Graph.PackingMode
- Graph.PageDirection
- Graph.QuadtreeScheme
- Graph.RankDirection
- Graph.Smoothing
- Graph.Spline
- Graph.Viewport
- Graph.Viewport.Center
- GraphBuilder
- LayoutAlgorithm
- Location
- Node
- Node.Attributes
- Node.FixedSize
- Node.ImagePosition
- Node.Shape
- Node.Style
- Ordering
- Point
- Position
- Rectangle
- Renderer
- Renderer.Options
- Size
- Subgraph
- Subgraph.Attributes
- Subgraph.Rank
- Subgraph.Style
- SubgraphBuilder