-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathEdge.go
More file actions
22 lines (19 loc) · 706 Bytes
/
Copy pathEdge.go
File metadata and controls
22 lines (19 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package dot
import "github.com/wwmoraes/dot/attributes"
// Edge is implemented by dot-compatible edge values
type Edge interface {
attributes.Styleable
attributes.Serializable
// From returns the tail node this Edge is connected from
From() Node
// From returns the head node this Edge is connected to
To() Node
// Edge creates an Edge to a Node using the head node of this Edge as tail
Edge(to Node) Edge
// Edge creates an Edge with the provided attributes to a Node using the head
// node of this Edge as tail
EdgeWithAttributes(to Node, attributes attributes.Reader) Edge
// EdgesTo returns all edges between the head Node of this Edge and the target
// Node
EdgesTo(to Node) []Edge
}