# Path: sdopt/nodes/attributes.py
# class NodeAttr:
#     bounds    =  1
#     con_num   =  2
#     d_term    =  3
#     display   =  4
#     input_ord =  5
#     n_term    =  6
#     name      =  7
#     node_id   =  8
#     number    =  9
#     operation = 10
#     type      = 11
#     var_num   = 12


import six
from ..nodes.attributes import NodeAttr
from __future__ import print_function

# I am still not sure how to resolve many of the things in here, so just leaving
# it the way it is.  

class ntype:
    DIV = 'div'
    EXP = 'exp'
    LOG = 'log'
    MUL = 'mul'
    NEG = 'neg'
    NUM = 'num'
    POW = 'pow'
    SQR = 'sqr'
    SUM = 'sum'
    VAR = 'var'
    
def is_var_node(node_dict):
    return node_dict[NodeAttr.type] == ntype.VAR

def is_sum_node(node_dict):

# Path: sdopt/nodes/attributes.py
# class NodeAttr:
#     bounds    =  1
#     con_num   =  2
#     d_term    =  3
#     display   =  4
#     input_ord =  5
#     n_term    =  6
#     name      =  7
#     node_id   =  8
#     number    =  9
#     operation = 10
#     type      = 11
#     var_num   = 12


# Path: sdopt/nodes/types.py
import six
from ..nodes.attributes import NodeAttr

from __future__ import print_function

# I am still not sure how to resolve many of the things in here, so just leaving
# it the way it is.  

class ntype:
    DIV = 'div'
    EXP = 'exp'
    LOG = 'log'
    MUL = 'mul'
    NEG = 'neg'
    NUM = 'num'
    POW = 'pow'
    SQR = 'sqr'
    SUM = 'sum'
    VAR = 'var'
    
def is_var_node(node_dict):
    return node_dict[NodeAttr.type] == ntype.VAR

def is_sum_node(node_dict):

    return node_dict[NodeAttr.type] == ntype.SUM