func FormatList(g Graph) string {
	if g == nil {
		return "<nil>"
	}
	var b strings.Builder
	l := g.Len()
	first := true
	b.WriteByte('[')
	for i := 0; i < l; i++ {
		for j := 0; j < l; j++ {
			if g.Has(uint(i), uint(j)) {
				if !first {
					b.WriteByte(' ')
				}
				first = false
				b.WriteByte('(')
				b.WriteString(strconv.FormatInt(int64(i), 10))
				b.WriteByte(' ')
				b.WriteString(strconv.FormatInt(int64(j), 10))
				b.WriteByte(')')
			}
		}
	}
	b.WriteByte(']')
	return b.String()
}
// FormatList formats the graph as a list of edges on a single line.
FormatList formats the graph as a list of edges on a single line.
// FormatList formats the graph as a list of edges on a single line .
func FormatList(g Graph) string {
	if g == nil {
		return "<nil>"
	}
	var b strings.Builder
	l := g.Len()
	first := true
	b.WriteByte('[')
	for i := 0; i < l; i++ {
		for j := 0; j < l; j++ {
			if g.Has(uint(i), uint(j)) {
				if !first {
					b.WriteByte(' ')
				}
				first = false
				b.WriteByte('(')
				b.WriteString(strconv.FormatInt(int64(i), 10))
				b.WriteByte(' ')
				b.WriteString(strconv.FormatInt(int64(j), 10))
				b.WriteByte(')')
			}
		}
	}
	b.WriteByte(']')
	return b.String()
}
func FormatList ( g Graph ) string { if g == nil { return " " } var b strings . Builder l := g . Len ( ) first := true b . WriteByte ( '[' ) for i := 0 ; i < l ; i ++ { for j := 0 ; j < l ; j ++ { if g . Has ( uint ( i ) , uint ( j ) ) { if ! first { b . WriteByte ( ' ' ) } first = false b . WriteByte ( '(' ) b . WriteString ( strconv . FormatInt ( int64 ( i ) , 10 ) ) b . WriteByte ( ' ' ) b . WriteString ( strconv . FormatInt ( int64 ( j ) , 10 ) ) b . WriteByte ( ')' ) } } } b . WriteByte ( ']' ) return b . String ( ) }
FormatList formats the graph as a list of edges on a single line.
FormatList formats the graph as a list of edges on a single line .