Discover Packages
github.com/vaskoz/dailycodingproblem-go
day72
package
Version:
v0.0.0-...-36687a4
Opens a new window with list of versions in this module.
Published: Oct 28, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func ErrInfiniteLoop() error
ErrInfiniteLoop returns the error if an infinite loop is detected.
LargestPathValue takes a slice of runes representing nodes.
Edges represents all the directed edges.
Returns the largest path value or an error if an infinite loop is detected.
type AdjacencyMatrix map[int ]map[int ]struct{}
AdjacencyMatrix represents a sparse adjacency matrix.
type Edge struct {
From, To int
}
Edge represents a directed edge going 'From' and 'To' a different node.
Nodes are represented by integers from 0..N.
Node is a character representation of a node in a graph.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.