Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
mattt edited this page Nov 16, 2020 · 10 revisions

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]
Clone this wiki locally