Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DFS ¶
type DFS interface { Run( ctx context.Context, startVertex model.GraphVertex, graph model.Graph, action OnVertexManagedAction, ) error }
type GraphCyclesSearcher ¶
type OnVertexAction ¶
type OnVertexManagedAction ¶
type OnVertexManagedAction interface { BeforeVertexManaged( ctx context.Context, targetVertex model.GraphVertex, edge *model.Edge, graph model.Graph, ) VertexManageType OnVertexExit( ctx context.Context, targetVertex model.GraphVertex, edge *model.Edge, graph model.Graph, ) AfterVertexManaged( ctx context.Context, targetVertex model.GraphVertex, edge *model.Edge, graph model.Graph, ) }
type VertexManageType ¶
type VertexManageType bool
const ( VisitChildrenManageType VertexManageType = true NotVisitChildrenManageType VertexManageType = false )
Click to show internal directories.
Click to hide internal directories.