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

Node

A single node of the graph.

@dynamicMemberLookup public struct Node: Identifiable, Hashable

If a node appears inside a record, it has only the both attributes id and label.

Inheritance

ExpressibleByStringLiteral, Hashable, Identifiable

Initializers

init(_:)

public init(_ id: String)

init(stringLiteral:)

public init(stringLiteral value: String)

Properties

id

var id: String

A unique identifier for a node or a cluster.

Node ids are referenced by the edge attributes from and to, cluster ids by ltail and lhead.

If for a node the attribute label is not defined, the value of the attribute is used.

Strings [A-Z,a-z,0-9,.,_]+

attributes

var attributes: Attributes

Methods

<--(lhs:rhs:)

public static func <--(lhs: Node, rhs: Node) -> Edge

<->(lhs:rhs:)

public static func <->(lhs: Node, rhs: Node) -> Edge

-->(lhs:rhs:)

public static func -->(lhs: Node, rhs: Node) -> Edge

-->(lhs:rhs:)

public static func -->(lhs: Node, rhs: [Node]) -> Subgraph

---(lhs:rhs:)

public static func ---(lhs: Node, rhs: Node) -> Edge
Clone this wiki locally