func FormatAdjacency(g Graph) string {
	if g == nil {
		return "<nil>"
	}
	var b strings.Builder
	l := g.Len()
	for i := 0; i < l; i++ {
		b.WriteString(strconv.FormatInt(int64(i), 10))
		b.WriteByte(':')
		for j := 0; j < l; j++ {
			if g.Has(uint(i), uint(j)) {
				b.WriteByte(' ')
				b.WriteString(strconv.FormatInt(int64(j), 10))
			}
		}
		b.WriteByte('\n')
	}
	return b.String()
}
// FormatAdjacency formats the graph as an adjacency list on multiple
// lines.
FormatAdjacency formats the graph as an adjacency list on multiple
lines.
// FormatAdjacency formats the graph as an adjacency list on multiple // lines .
func FormatAdjacency(g Graph) string {
	if g == nil {
		return "<nil>"
	}
	var b strings.Builder
	l := g.Len()
	for i := 0; i < l; i++ {
		b.WriteString(strconv.FormatInt(int64(i), 10))
		b.WriteByte(':')
		for j := 0; j < l; j++ {
			if g.Has(uint(i), uint(j)) {
				b.WriteByte(' ')
				b.WriteString(strconv.FormatInt(int64(j), 10))
			}
		}
		b.WriteByte('\n')
	}
	return b.String()
}
func FormatAdjacency ( g Graph ) string { if g == nil { return " " } var b strings . Builder l := g . Len ( ) for i := 0 ; i < l ; i ++ { b . WriteString ( strconv . FormatInt ( int64 ( i ) , 10 ) ) b . WriteByte ( ':' ) for j := 0 ; j < l ; j ++ { if g . Has ( uint ( i ) , uint ( j ) ) { b . WriteByte ( ' ' ) b . WriteString ( strconv . FormatInt ( int64 ( j ) , 10 ) ) } } b . WriteByte ( '\n' ) } return b . String ( ) }
FormatAdjacency formats the graph as an adjacency list on multiple
lines.
FormatAdjacency formats the graph as an adjacency list on multiple lines .