# Path: brewery/utils.py
# def get_logger():
#     """Get brewery default logger"""
#     global logger
#     
#     if logger:
#         return logger
#     else:
#         return create_logger()


from collections import OrderedDict
from brewery.utils import get_logger

class Graph(object):
    """Data processing stream"""
    def __init__(self, nodes=None, connections=None):
        """Creates a node graph with connections.

        :Parameters:
            * `nodes` - dictionary with keys as node names and values as nodes
            * `connections` - list of two-item tuples. Each tuple contains source and target node
              or source and target node name.
        """

        super(Graph, self).__init__()
        self.nodes = OrderedDict()
        self.connections = set()


# Path: brewery/utils.py
# def get_logger():
#     """Get brewery default logger"""
#     global logger
#     
#     if logger:
#         return logger
#     else:
#         return create_logger()


# Path: brewery/graph.py
from collections import OrderedDict
from brewery.utils import get_logger


class Graph(object):
    """Data processing stream"""
    def __init__(self, nodes=None, connections=None):
        """Creates a node graph with connections.

        :Parameters:
            * `nodes` - dictionary with keys as node names and values as nodes
            * `connections` - list of two-item tuples. Each tuple contains source and target node
              or source and target node name.
        """

        super(Graph, self).__init__()
        self.nodes = OrderedDict()
        self.connections = set()


        self.logger = get_logger()