func (g *Graph8) InDegree(i uint) int {
	// Equivalent to bits.OnesCount64((g >> i) & m0)
	const (
		m0 = 0x0101010101010101
		m1 = 0x00ff00ff00ff00ff
		m2 = 0x0000ffff0000ffff
		m3 = 0x00000000ffffffff
	)
	d := (g.g >> i) & m0
	d = ((d >> 8) + d) & m1
	d = ((d >> 16) + d) & m2
	d = ((d >> 32) + d) & m3
	return int(d)
}
// InDegree returns the number of edges directed to the given node.
InDegree returns the number of edges directed to the given node.
// InDegree returns the number of edges directed to the given node .
func (g *Graph8) InDegree(i uint) int {
	const (
		m0 = 0x0101010101010101
		m1 = 0x00ff00ff00ff00ff
		m2 = 0x0000ffff0000ffff
		m3 = 0x00000000ffffffff
	)
	d := (g.g >> i) & m0
	d = ((d >> 8) + d) & m1
	d = ((d >> 16) + d) & m2
	d = ((d >> 32) + d) & m3
	return int(d)
}
func ( g * Graph8 ) InDegree ( i uint ) int { const ( m0 = 0x0101010101010101 m1 = 0x00ff00ff00ff00ff m2 = 0x0000ffff0000ffff m3 = 0x00000000ffffffff ) d := ( g . g >> i ) & m0 d = ( ( d >> 8 ) + d ) & m1 d = ( ( d >> 16 ) + d ) & m2 d = ( ( d >> 32 ) + d ) & m3 return int ( d ) }
InDegree returns the number of edges directed to the given node.
InDegree returns the number of edges directed to the given node .
// Equivalent to bits.OnesCount64((g >> i) & m0)