-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGraphOptions.go
41 lines (39 loc) · 1.19 KB
/
GraphOptions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package dot
import (
"github.com/wwmoraes/dot/generators"
)
// GraphOptions is implemented by values used to initialize graphs
type GraphOptions interface {
// SetID changes the id
SetID(string)
// ID returns the id
ID() string
// SetParent changes the parent graph
SetParent(Graph)
// Parent return the parent graph
Parent() Graph
// SetType changes the graph type
SetType(GraphType)
// Type returns the graph type
Type() GraphType
// SetStrict changes the strict flag
SetStrict(bool)
// Strict returns the strict flag
Strict() bool
// SetGenerator changes the ID generator
SetGenerator(generators.IDGenerator)
// Generator return the ID generator
Generator() generators.IDGenerator
// SetNodeInitializer changes the node initializer function
SetNodeInitializer(NodeInitializerFn)
// NodeInitializer returns the node initializer function
NodeInitializer() NodeInitializerFn
// SetEdgeInitializer changes the node initializer function
SetEdgeInitializer(EdgeInitializerFn)
// EdgeInitializer returns the node initializer function
EdgeInitializer() EdgeInitializerFn
// SetCluster changes the cluster flag
SetCluster(bool)
// Cluster returns if the graph is a cluster
Cluster() bool
}