code: def degrees_und(CIJ):
      '''
      Node degree is the number of links connected to the node.
  
      Parameters
      ----------
      CIJ : NxN np.ndarray
          undirected binary/weighted connection matrix
  
      Returns
      -------
      deg : Nx1 np.ndarray
          node degree
  
      Notes
      -----
      Weight information is discarded.
      '''
      CIJ = binarize(CIJ, copy=True)  # ensure CIJ is binary
      return np.sum(CIJ, axis=0f degrees_und(CIJ):
      '''
      Node degree is the number of links connected to the node.
  
      Parameters
      ----------
      CIJ : NxN np.ndarray
          undirected binary/weighted connection matrix
  
      Returns
      -------
      deg : Nx1 np.ndarray
          node degree
  
      Notes
      -----
      Weight information is discarded.
      '''
      CIJ = binarize(CIJ, copy=True)  # ensure CIJ is binary
      return np.sum(CIJ, axis=0)
docs: Node degree is the number of links connected to the node.
  
      Parameters
      ----------
      CIJ : NxN np.ndarray
          undirected binary/weighted connection matrix
  
      Returns
      -------
      deg : Nx1 np.ndarray
          node degree
  
      Notes
      -----
      Weight information is discarded.