Edge - SwiftDocOrg/GraphViz GitHub Wiki
Edge
An edge between two nodes.
@dynamicMemberLookup public struct Edge: Hashable
Inheritance
Hashable
Initializers
init(from:to:direction:)
public init(from: Node, to: Node, direction: Direction? = nil)
init(from:to:direction:)
public init(from: Node.ID, to: Node.ID, direction: Direction? = nil)
Properties
from
var from: Node.ID
to
var to: Node.ID
direction
var direction: Direction?
Sets the edge type for drawing arrowheads (not for ranking purposes).
attributes
var attributes: Attributes
Methods
<--(lhs:rhs:)
public static func <--(lhs: Edge, rhs: Node) -> [Edge]
<->(lhs:rhs:)
public static func <->(lhs: Edge, rhs: Node) -> [Edge]
-->(lhs:rhs:)
public static func -->(lhs: Edge, rhs: Node) -> [Edge]
---(lhs:rhs:)
public static func ---(lhs: Edge, rhs: Node) -> [Edge]