Documentation ¶
Overview ¶
Package gimpls provides standard implementations for graph methods that can help to implement groph graphs.
E.g. see the groph graphs and adjmtx package.
Index ¶
- Constants
- func DEachEdge[W any, G groph.RDirected[W]](g G, onEdge groph.VisitEdgeW[W]) error
- func DEachIn[W any, G groph.RDirected[W]](g G, to groph.VIdx, onSource groph.VisitVertex) error
- func DEachLeaf[W any, G groph.RDirected[W]](g G, onLeaf groph.VisitVertex) error
- func DEachOut[W any, G groph.RDirected[W]](g G, from groph.VIdx, onDest groph.VisitVertex) error
- func DEachRoot[W any, G groph.RDirected[W]](g G, onRoot groph.VisitVertex) error
- func DInDegree[W any, G groph.RDirected[W]](g G, v groph.VIdx) (d int)
- func DLeafCount[W any, G groph.RDirected[W]](g G) (res int)
- func DOutDegree[W any, G groph.RDirected[W]](g G, v groph.VIdx) (d int)
- func DRootCount[W any, G groph.RDirected[W]](g G) (res int)
- func DSize[W any, G groph.RDirected[W]](g G) (res int)
- func TestDCleared[W any](t *testing.T, g groph.RGraph[W], what string)
- func TestUCleared[W any](t *testing.T, g groph.RUndirected[W], what string)
- func UDegree[W any](g groph.RUndirected[W], v groph.VIdx) (d int)
- func UEachAdjacent[W any, G groph.RUndirected[W]](g G, of groph.VIdx, onNeighbour groph.VisitVertex) error
- func UEachEdge[W any, G groph.RUndirected[W]](g G, onEdge groph.VisitEdgeW[W]) error
- func UEdge[W any, G groph.RUndirected[W]](g G, u, v groph.VIdx) W
- func USetEdge[W any, G groph.WUndirected[W]](g G, u, v groph.VIdx, w W)
- func USize[W any, G groph.RUndirected[W]](g G) (res int)
- type SetDelTest
Constants ¶
View Source
const SetDelSize = 11
Variables ¶
This section is empty.
Functions ¶
func TestUCleared ¶
func UEachAdjacent ¶
func UEachAdjacent[W any, G groph.RUndirected[W]](g G, of groph.VIdx, onNeighbour groph.VisitVertex) error
func UEachEdge ¶
func UEachEdge[W any, G groph.RUndirected[W]](g G, onEdge groph.VisitEdgeW[W]) error
Types ¶
type SetDelTest ¶
TODO Break down tests into t.Run() calls
func (SetDelTest[W]) Undirected ¶
func (tst SetDelTest[W]) Undirected(t *testing.T, g groph.WUndirected[W])
Click to show internal directories.
Click to hide internal directories.