Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Oct 17, 2021. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 38
Graph
mattt edited this page Jan 7, 2021
·
12 revisions
@dynamicMemberLookuppublicstruct Graph: EquatableEquatable
Creates a graph.
publicinit(directed:Bool=false, strict:Bool=false)- directed: Whether the graph is directed;
false by default. - strict: Whether the graph is strict;
falseby default.
publicinit(directed:Bool=false, strict:Bool=false, _ builder:()->GraphMember)Whether the graph is directed.
vardirected:BoolWhether the graph is strict.
varstrict:BoolThe id of the graph, is any.
varid:String?=nilSubgraphs contained by the graph.
varsubgraphs:[Subgraph]=[]Nodes contained by the graph.
varnodes:[Node]=[]Edges contained by the graph.
varedges:[Edge]=[]Returns whether the graph is empty.
varisEmpty:BoolA graph is considered to be empty if it has no subgraphs, has no edges, has no nodes with attributes, and has no attributes itself.
varattributes:Attributespublicmutatingfunc append(_ subgraph:Subgraph)publicmutatingfunc append<S>(contentsOf subgraphs:S)where S.Element ==Subgraph, S:Sequencepublicmutatingfunc append(_ node:Node)publicmutatingfunc append<S>(contentsOf nodes:S)where S.Element ==Node, S:Sequencepublicmutatingfunc append(_ edge:Edge)publicmutatingfunc append<S>(contentsOf edges:S)where S.Element ==Edge, S:SequenceRenders the graph using the specified layout algorithm to the desired output format.
publicfunc render(using layout:LayoutAlgorithm, to format:Format, with options:Renderer.Options=[])throws->Data- layout: The layout algorithm.
- format: The output format.
- options: The rendering options.
CocoaError if the corresponding GraphViz tool isn't available.
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